1753707 Members
5080 Online
108799 Solutions
New Discussion юеВ

Re: DNS ip

 
SOLVED
Go to solution
JMS G
Advisor

DNS ip

hi i just want to ask how to put DNS ip address on my hp-ux 11i v3. thank you for all your help.
4 REPLIES 4
Ganesan R
Honored Contributor

Re: DNS ip

Hi JMS,

If it is DNS client, put the entries in /etc/resolv.conf file.

You can add multiple DNS servers(Max 3) in /etc/resolv.conf like below

nameserver 100.10.10.1
nameserver 100.10.10.2
nameserver 100.10.10.3

See man resolv.conf for more details.
Best wishes,

Ganesh.
JMS G
Advisor

Re: DNS ip

thank you for your answer. so i need to put only the ip DNS in here /etc/resol.conf how about the gateway ip where will i put it.
Robert-Jan Goossens
Honored Contributor
Solution

Re: DNS ip

Hi,

You can change the default gateway in the following file.

/etc/rc.config.d/netconf

Or use the set_parms script.

# set_parms initial

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: DNS ip

Shalom,

The name servers you get for your network administrator.

You set them in /etc/resolv.conf

Using set_parms is all right but every once in a while you get unexpected results.

Better to set them yourself.

The effect is immediate without need of a reboot.

I always check network connectivity with a ping at least, better yet a:

telnet 53

To insure there really are DNS servers out there.

Also test with nslookup or dig (If installed) after the fact to make sure they work.

Note, standard configuration of /etc/nsswitch.conf goes to files first. This means names found in /etc/hosts will get looked up before DNS. This is a good tool for temporary network changes. It is something you need to be aware of if you do not achieve expected results.

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