1825810 Members
3101 Online
109688 Solutions
New Discussion

configuring DNS

 
Liz_9
Occasional Advisor

configuring DNS

Hi

can someone tell me how to enable/configure DNS in hpux 11i as I need to network several workstations.

thanks
Liz.
2 REPLIES 2
Massimo Bianchi
Honored Contributor

Re: configuring DNS

Hi,
first you must know your DNS IP, obviously.

Then:

- modify /etc/nsswitch.conf.
if not exists, copy from /etc/nsswitch.compat
that looks like this:
#
# /etc/nsswitch.compat:
#
# @(#)B.11.11_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#

passwd: compat
group: compat
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: nis [NOTFOUND=return] files


Change all occurences to look like this:

#
# /etc/nsswitch.compat:
#
# @(#)B.11.11_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#

passwd: files
group: files
hosts: files dns
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files

You may want to include some settings, if dns is not avaiable:

hosts: files dns [NOTFOUND=return UNAVAIABLE=return]

- then edit /etc/resolv.conf

more /etc/resolv.conf
domain YOURDOMAIM.YOURSTUFF
nameserver YOUR.IP.HERE.PLEASE

- check permissions of these files, they must be readable by all (chmod ugo+r ... )

and then go !

HTH,
Massimo





Con O'Kelly
Honored Contributor

Re: configuring DNS

Hi

Client
If you already have a DNS server setup then update the 2 files as follows:
1. /etc/resolv.conf
nameserver
2. /etc/nsswitch.conf
hosts: dns files

Server
Use the hosts_to_named command.
The Admin guide below (Chp 3) has details on setting up a DNS server.
http://www.docs.hp.com/hpux/pdf/B2355-90147.pdf

Cheers
Con