Operating System - HP-UX
1833785 Members
2461 Online
110063 Solutions
New Discussion

Configuring the Primary DNS server on HP 10.20

 
SOLVED
Go to solution
Samuel Mathew
Frequent Advisor

Configuring the Primary DNS server on HP 10.20

Hello,
I came upon this forum when I was looking for instructions to install a DNS server on HP-UX 10.20. My problem is this.
We had 10.20 DNS server that died. Now I want to define the secondary DNS as the primary server.
What should I do?
Is there a host_to_named script in 10.20?
I would appreciate if somebody can tell me how to convert my secondary DNS server as primary as the primary doesn't exist anymore.
Also is there a document to define a primary DNS server from scratch? A URL will be appreciated.
Thanks for the help
Regards
Sam
8 REPLIES 8
Michael Elleby III_1
Trusted Contributor
Solution

Re: Configuring the Primary DNS server on HP 10.20

Sam-

Quickest thing to do:

Place a copy of your hosts file on the secondary server that resided on the Primary server, hopefully it already is there, if not, maybe you have it backed up?

Remove the current files from /etc that refer to this machine being the secondary (i.e. db.127.0.0, named.boot, etc)

Run the 'hosts_to_named' script, this should walk you through configuring your machine as a primary.

Of course, you'll have to configure the rest of the machines in the network to access this box as the new primary, as due to the fact that the primary has died, there will be a timeout issue for any requests, as the clients will note that the primary is unavailable..

hope this helps..

Mike-
Knowledge Is Power
Michael Elleby III_1
Trusted Contributor

Re: Configuring the Primary DNS server on HP 10.20

Sam-

If what I stated wasn't good enough, go here:

http://docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html

Mike-
Knowledge Is Power
Sridhar Bhaskarla
Honored Contributor

Re: Configuring the Primary DNS server on HP 10.20

Hi Sam,

Look at the following document

http://docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html

Section "Configuring and Administering the BIND Name Service".

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Steele_2
Honored Contributor

Re: Configuring the Primary DNS server on HP 10.20

Here's an outline:

1. Server

a) Set up FQDN /etc/hosts files. Create a list of host names and IP that will be used as the primary dns with Fully Qualified Domain Names.

b) Create /etc/named.data directory and a file named 'param'. In param specify,

-d
-n
-z
-b /etc/named.boot
-s

c) Run the command

hosts_to_named -f param

d) vi /etc/rc.config.d/namesvrs, set the NAMED variable to 1.

e) start the DNS

/sbin/init.d/named start

##############################################

2) configuring the client server

a) at the client machine, in the file /etc/nsswitch.conf, you can specify below:

hosts: dns files

b) at the /etc/resolv.conf file specify below:

nameserver ip
Support Fatherhood - Stop Family Law
Samuel Mathew
Frequent Advisor

Re: Configuring the Primary DNS server on HP 10.20

Hi Gentlemen,
Thanks very much for the quick response. I have assigned the points. Looks to be working correctly.
On the other clients in the network, I just went in and corrected the /etc/resolv.conf. I hope nothing else had to be changed on the other Hp-UX clients.
I wonder if there is anything to be done on the Microsoft Windows PCs at all. I didn't do anything on them. If there is something to be done, I would appreciate a quick reply.
Regards
Michael Steele_2
Honored Contributor

Re: Configuring the Primary DNS server on HP 10.20

I don't think windows PC's will work but go to network properties.

For XP:

right click on My network Places > right click on Local Area Connection > Select Internet Protocol (tcp/ip) > And fill in the DNS ip's.

Note:

Didn't see the points. You have to click on 'submit' after selecting from each responses's drop down menu.
Support Fatherhood - Stop Family Law
Samuel Mathew
Frequent Advisor

Re: Configuring the Primary DNS server on HP 10.20

I have tried several times to assign points. I assigned points for all those who responded and then clicked the submit button. The screen comes up that says "Thank you....." and all of that. But if I go back no points are assigned. Well, any clues. I hope the moderator will reply to me to tell me what is happening.
I would like to again and go assign the points - all of you have been helpful...
Thanks
Sam
Samuel Mathew
Frequent Advisor

Re: Configuring the Primary DNS server on HP 10.20

I have one more problem in this issue that has come up. Since the time the new dns server came up, users are not able to get an 'hpterm' terminal when they click on the hpterm icon.
Is this something to do with the change in the dns server address.
Why would the hpterm not come up at all?
I would appreciate a comment.
Regards