Operating System - HP-UX
1833875 Members
1985 Online
110063 Solutions
New Discussion

Re: Add HPUX11i server to DNS

 

Add HPUX11i server to DNS

Hi, I am having problems adding my server to DNS. Can anyone help?
Which does not kill you only makes you stronger
6 REPLIES 6
Mark Greene_1
Honored Contributor

Re: Add HPUX11i server to DNS

Is your DNS running on Windows or Unix?
the future will be a lot like now, only later

Re: Add HPUX11i server to DNS

Unix
Which does not kill you only makes you stronger
Mark Greene_1
Honored Contributor

Re: Add HPUX11i server to DNS

OK. Depending on the DNS version you are running, on your Unix box there will be a file called /etc/named.boot or /etc/named.conf. This file will contain the file names and directory location of your DNS tables. Once you locate those, invoke your prefered editor and add your new HP box following the format for the "A" records. Make sure to update the corresponding reverse file as well.

Once you've done that, get the PID for the named process and send it a kill -HUP to get it to reread the tables. You can then tail the syslog to see if that went without errors, or not. You should see a message about the zone for the HP box being reloaded.

mark
the future will be a lot like now, only later

Re: Add HPUX11i server to DNS

I see what you are saying all I want to do is introduce my server to DNS. The entries have already by made on the root server.
Which does not kill you only makes you stronger
Mark Greene_1
Honored Contributor

Re: Add HPUX11i server to DNS

Oh, sorry. Reading too much into it.

Edit /etc/resolv.conf and add the following:

domain xxx.com
nameserver 10.10.1.1

and substitute the appropriate domain and IP info.

the future will be a lot like now, only later
Mister_Z
Frequent Advisor

Re: Add HPUX11i server to DNS

Assuming the DNS server, i.e dnssrv, is already set up and your host is named server1 with IP address w.x.y.10. The following changes have to be made in the dnssrv:

In the file /etc/named.boot you wil find the following entries:
...
primary db.dns
primary y.x.w.IN-ADDRE.ARPA db.w.x.y
...

The files db.dns and db.w.x.y are used for direct and reverse resolution respectively. These files are stored in /etc/named.data.

In /etc/named.data/db.dns add an "A" record for server1:
...
server1 IN A w.x.y.10
...
In /etc/named.data/db.w.x.y add a "PTR" record
...
10 IN PTR server1.
...

Ensure you restart the DNS daemon, named to apply the changes:
#/sbin/init.d/named stop
#/sbin/init.d/named start

Now, you must specify in /etc/resolv.conf in server1 that you're going to use:
domain
nameserver

Try nslookup to check direct and reverse resolution. Ensure you're using DNS for name resolution checking the file /etc/nsswitch.conf in server1:
...
hosts: files [NOTFOUND=continue] dns
...

Regards,
I work for HP