Operating System - HP-UX
1834148 Members
2210 Online
110064 Solutions
New Discussion

Re: Add a DNS server to network property in HP-UX

 
SOLVED
Go to solution
Gene Laoyan
Super Advisor

Add a DNS server to network property in HP-UX

I need to add a new DNS server on my server. I am running HP-UX 11.23. How can I do this. I have looked in SAM but can't find any way to add a DNS server so I can resolve certain hostnames on the network.

Thanks
7 REPLIES 7
Victor BERRIDGE
Honored Contributor
Solution

Re: Add a DNS server to network property in HP-UX

Hi,
I suppose you are talking about
/etc/resolv.conf

Add there the new name server and also specify if its for another domain before
eg

nameserver IP


All the best
Victor
A. Clay Stephenson
Acclaimed Contributor

Re: Add a DNS server to network property in HP-UX

Your question is not quite clear. Do you merely need to enable your HP-UX box to use DNS (if so that is an entry in /etc/resolv.conf and /etc/nsswitch.conf) or do you need to modify an existing DNS server to point to other DNS servers for additional domains?
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: Add a DNS server to network property in HP-UX

Shalom,

SAM can do it, but editing the /etc/resolv.conf file is easier.

You want the top entry in that configuration file to be a server that can resolve most or all hostnames. There is sometimes a delay in getting answers from the number two or number three server in /etc/resolv.conf

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
NMory
Respected Contributor

Re: Add a DNS server to network property in HP-UX

Have you tried:

SAM---Networkwing and Communications---DNS (Bind)---DNS REsolver---Actions---Specify Name Servers

???

LN
Jaime Bolanos Rojas.
Honored Contributor

Re: Add a DNS server to network property in HP-UX

Gene,

Also remember for all those important entries to add them too to the /etc/hosts file, just in case the DNS server goes down, you still have a resolution method working on the system.

Regards,

Jaime.
Work hard when the need comes out.
Gene Laoyan
Super Advisor

Re: Add a DNS server to network property in HP-UX

Thanks Everyone!
hboo
Frequent Advisor

Re: Add a DNS server to network property in HP-UX

hello

To add a new DNS server you must edit the file/etc/resolv.conf and add the following

Domain domain_name
nameserver ip_dir1
nameserver ip_dir2

Example:
Domain dom_domain
nameserver 200.10.08.52
nameserver 200.10.09.53

I hope help you