Operating System - HP-UX
1834435 Members
2212 Online
110067 Solutions
New Discussion

Re: How to update/add entry to dns

 
SOLVED
Go to solution
Thayanidhi
Honored Contributor

How to update/add entry to dns

Hi,
I setup dns/bind on hp-ux 11.00 through sam.
How do I manually add entry to dns database?
Assume I need to add a MX record.

Thanks in advance

TT
Attitude (not aptitude) determines altitude.
4 REPLIES 4
steven Burgess_2
Honored Contributor
Solution

Re: How to update/add entry to dns

Hi

To update your primary server you first make or ammend the entry in the local hosts file, go to the directory where your parameter file exists , should be /etc/named.data

# hosts_to_named -f

Then reload with

# sig_named restart

To manually update the secondary just run

#sig_named restart

HTH

Steve
take your time and think things through
Oleg Zieaev_1
Regular Advisor

Re: How to update/add entry to dns

Hello.

Information is stored under /etc/named.data.
Yes, you will need to add lines for IN PTR in db.XXX.XXX.XXX (your network).
ex:
hostA IN A 192.168.1.10

and IN A record in db.your_domain file.
10 IN PTR hostA.domain.com.

In case the box you add is a mail server, you will need IN MX record. And optional IN CNAME record (to create alias like mail for your host).
ex:
mail IN CNAME hostA
domain.com. IN MX 10 mail.domain.com

In order to run hosts_to_named you will need to update your /etc/hosts fist to put FQA for your hosts. Check man pages for hosts_to_named.
You can always run it from /etc/named.data/test directory as hosts_to_named creates files under current directory. This should give you idea what to expect in your files in case you want to add entry(s) manually.

Hope this helps.
0leg
Professionals will prevail ...
A. Clay Stephenson
Acclaimed Contributor

Re: How to update/add entry to dns

While the instructions about updating the files in /etc/named_data are correct there is a missing step. In these files there is a field called 'Serial' that must be increased before issueing the restart command.
If it ain't broke, I can fix that.
W.C. Epperson
Trusted Contributor

Re: How to update/add entry to dns

Regarding Oleg's example, it's not technically inoperable, but the RFCs strongly recommend against pointing an MX record at a CNAME. And be careful when updating the serial number--if you accidentally add a 0 (20020112601 instead of 2002112601), you'll be stuck with it because updates occur when the slave's serial is less than the master's.
"I have great faith in fools; self-confidence, my friends call it." --Poe