1833081 Members
2904 Online
110050 Solutions
New Discussion

moving DNS

 
SOLVED
Go to solution
Fred Martin_1
Valued Contributor

moving DNS

I have to move DNS from one HP-UX server to another, today. The source server (11.00) is being retired and the destination server (11.11) will take it's name and IP address.

I'm planning on moving over:
/etc/named.data
/etc/named.boot
/etc/resolv.conf
/etc/nsswitch.conf

I need to know where the file is that controls DNS startup during the boot process, as I'll need to turn that on.

Also how can I get the current bind version from the new server?

Is there anything else I need to do, or need to know?

Thanks in advance.
fmartin@applicatorssales.com
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: moving DNS

Startup and behavior is controlled by /etc/named.conf

Thats where you define and point to your zone files.

I had to manually recreate the data when I implemented BIND 9.2http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND9.2

Here is a good implementation howto. Its Linux based but it worked like a champ on HP-UX.

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/DNS-HOWTO.html

If installed from depot:
swlist -l product | grep -i bind

If not, man dig, there are options that will display the version of BIND/DNS

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Nikitka
Honored Contributor

Re: moving DNS

Hi,

since yoe have listed /etc/named.boot in your filelist, you have bind version 4.x running.

Newer versions of bind require the conversion
of this file to new syntax and to a different filename '/etc/named.conf' .

There was a conversion utility - distributed at least wiht bind 8.x - for the conversion process.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Fred Martin_1
Valued Contributor

Re: moving DNS

Looks like I'm on 4.9.7 on the source box, and 8.1.2 on the destination.

Are they compatible? If so I'll just move the data over for now, and up-rev it later.

Were is the file that has the switch, which starts DNS at boot?
fmartin@applicatorssales.com
Peter Nikitka
Honored Contributor

Re: moving DNS

Hi,

you need to convert the bootfile and the DNS-data, you cannot just use the 4.9 stuff in
8.x .

I have just no HP machine at hand for the startup file, bit grep for NAMED in /etc/rc.config.d/* , you will find it.


mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Fred Martin_1
Valued Contributor

Re: moving DNS

Ok just put bind 9.2 on the destination box.

Can I ask, how do you convert the data from bind 4 to bind 9? What's the difference in the db.xxx files that would prevent me from using them directly?
fmartin@applicatorssales.com
Fred Martin_1
Valued Contributor

Re: moving DNS

Found the answer to my question - 'man named.conf' says "BIND 4.9.7 configuration files can be converted to the BIND 9.2 format using the shell script, /usr/bin/named-bootconf.sh"
fmartin@applicatorssales.com