Operating System - HP-UX
1833767 Members
2324 Online
110063 Solutions
New Discussion

Configure a DNS server in HP-UX10.20

 
SOLVED
Go to solution
Mauro_8
Frequent Advisor

Configure a DNS server in HP-UX10.20

Hi,

How can I configure my HP-UX 10.20 to be a DNS Server ? Do I have to install any software ? Where can I find it ?
I want to avoid the problem of keeping the hosts files of the computers (windows + HP-UX)in my net always upgraded.

Regards,
Mauro
5 REPLIES 5
Rich Wright
Trusted Contributor

Re: Configure a DNS server in HP-UX10.20

You should have all programs that you need.
See "man hosts_to_named" and "man named".
For a simple setup, you can continue to maintain one /etc/hosts file on the DNS server box and run hosts_to_named to update the DNS data base when changes occur.
When a change is made, then you would run "sig_named restart" for the named daemon to refresh.

Rich
S.K. Chan
Honored Contributor

Re: Configure a DNS server in HP-UX10.20

Online doc (Installing and Administering Internet Services). Click on "Configuring and Administering the BIND name Service".
http://www.docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html
Wodisch_1
Honored Contributor
Solution

Re: Configure a DNS server in HP-UX10.20

Hi Mauro,

first you need an up-to-date copy of a hosts file, containing all the names and IP-addresses you want.
Then you create a sub-directory, where you want to store the database (so-called "db-files") and "cd" into that.
Next step is to execute "hosts_to_named" with the proper options:
-r # if you want to run a "root" server
-d domain.name # the name of the domain
-n 11.22.33.44:255.255.255.0 # network and netmask for the reverse-lookups
-b /etc/named.boot # to create the config file in the default location

Now you enable the start of the daemon "named" upon next boot: vi /etc/rc.config.d/namesrvs
and set START_NAMED=1
and then you start it right now: /sbin/init.d/named start

The last step is to configure your local resolver: vi /etc/resolv.conf
nameserver your-ip-address
domain your.domain

HTH,
Wodisch
Mauro_8
Frequent Advisor

Re: Configure a DNS server in HP-UX10.20

Hi,

I will try, but just one more doubt. After this I have to set the windows clients to use this DNS server addind the IP of this DNS server in the DNS list, ok ? This HP-UX10.20 is also the domain controller and logon server with ten windows clients machines.

Regards,
Mauro
Wodisch_1
Honored Contributor

Re: Configure a DNS server in HP-UX10.20

Hi again,

yes.

Regards,
Wodisch