Operating System - HP-UX
1833780 Members
2401 Online
110063 Solutions
New Discussion

Configuring DNS client on HP-UX rx4696

 
HP-UX_1
Occasional Contributor

Configuring DNS client on HP-UX rx4696

Can someone help me in configuring dns client on hp-ux,

Thank you
8 REPLIES 8
Luk Vandenbussche
Honored Contributor

Re: Configuring DNS client on HP-UX rx4696

Hi,

Create file /etc/resolv.conf which contains

domain yourcompany.com
nameserver IP DNS1
nameserver IP DNS2

Modify /etc/nsswitch.conf

hosts: dns files


If you type nslookup now, it will search the info from your DNS
LiPEnS
Valued Contributor

Re: Configuring DNS client on HP-UX rx4696

Hi
a) in /etc/resolv.conf define domain and nameserver:
#cat /etc/resolv.conf
domain domain.com
nameserver x.x.x.x
b) in /etc/nsswitch.conf define order in use type of database (/etc/hosts, dns, nis):
# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

HTH
Regards LiPEnS
Muthukumar_5
Honored Contributor

Re: Configuring DNS client on HP-UX rx4696

To configure dns client,

edit /etc/nsswitch.conf file as,

hosts: dns files

dns will take /etc/resolv.conf file setting.

/etc/resolv.conf
domain domainname.extension

nameserver
nameserver

save it.

Check with nsquery or nslookup resolvation setting.

hth.
Easy to suggest when don't know about the problem!
Steven E. Protter
Exalted Contributor

Re: Configuring DNS client on HP-UX rx4696

Shalom HP-UX,

I've never replied to an operating system.

:-)

The DNS client is built into the OS.

Its configured with /etc/nsswitch.conf and /etc/resolv.conf

You need full network communications with the first nameserver entry in resolv.conf

Then you can use nsslookup to test if its working.

nslookup internalhostname

or

nslookup hp.com

The second command tests Internet DNS lookup and may be blocked by your internal network policy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: Configuring DNS client on HP-UX rx4696

Also - if you have mutiple servers, and want to "speed" up resolution in case of a busy DNS server (or if it is down) - then add the following to resolv.conf:

retrans 2500
retry 2

Default is 5000 ms and 4..

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: Configuring DNS client on HP-UX rx4696

Hi ,

Check out this doc , you can find DNS here:

http://docs.hp.com/en/B2355-90775/ch01s01.html


Enjoy ,

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
HP-UX_1
Occasional Contributor

Re: Configuring DNS client on HP-UX rx4696

I am able to enable the dns client, but whenever i am trying to logoon through CDE it gives me error
I can get the CDE logon screen it accepts the logon credetials and then it gives some desktop error and logoff

If i continue to use host file for dns, it doesn't gives error for CDE

I have configured Exceed software to get the CDE desktop through my windows XP client
Ivan Ferreira
Honored Contributor

Re: Configuring DNS client on HP-UX rx4696

Ensure that the hostname and ip address on the DNS server match the server name returned by the hostname command. Do not remove the local hostname and ip address from the hosts file.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?