Operating System - HP-UX
1830936 Members
1983 Online
110017 Solutions
New Discussion

Re: How to add a server into DNS server (HP-UX)

 
SOLVED
Go to solution
Alan Vargas
Regular Advisor

How to add a server into DNS server (HP-UX)

Hello

i have a DNS server in hp-ux, and i need to add a new server into DNS but i do not how to add the new client (new register).

Any idea, thanks for your help
2 REPLIES 2
Rick Garland
Honored Contributor

Re: How to add a server into DNS server (HP-UX)

There are multiple steps to this process and there can be big enough variations in some of the file names that to refer you to documentation at www.isc.org (Internet Systems Consortium) would be the better thing to do.

On this 1st page will be a FAQ.

How DNS is organized, where are the files, what are the file names, what is logical organization, etc... These are some of the variables involved.


A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How to add a server into DNS server (HP-UX)

I have lots of ideas but your question is not quite clear. It appears that all you want to do is add a new entry into DNS rather than adding another DNS (slave) server.

On the DNS master server, the files are typically (and by default) located in /etc/named.data.

You will need to add an entry in your db.your.domain file. Let's suppose that
your domain is 'disney.com' and you need to add a new host 'donald'.

Make a backup copy of all the files in another directory. Next, vi db.disney.com and add and entry similar to this:

donaldINA10.1.1.31
# You can also add aliases; as many as you like
donINCNAMEdonald.disney.com.

Next, in this same file near the top find the "Serial" entry and INCREASE it in some way.
e.g. 1001 would be increased to 1002.
e.g. 1.01 would be increased to 1.02.

Save the file.

Now you need to edit the reverse lookups and in my example that would be db.10

Make an entry like this:
31.1.1INPTRdonald.disney.com.
AND again increase the Serial in this file. The serial value is used as a flag to indicate which tables need updating. Save this file.

Now do a ps -ef | grep named and note the PID of the named process.

kill -1 PID # sends a SIGHUP to named to trigger a reconfiguration.

That should fix you.

If it ain't broke, I can fix that.