LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2006, 02:09 PM   #1
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Rep: Reputation: 30
I need to migrate to a new domain w/ BIND (DNS)


i currently have a dns server that resolves about 500 hosts in domain1.com. i need to now work towards migrating all current records to domain2.com. over the next year or so, i will also need to keep these domains in sync. ie: serverA.domain1.com has the same ip address as serverA.domain2.com.

what is the best way to handle this? DNAME records??

thanks..
 
Old 11-17-2006, 02:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,750

Rep: Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839Reputation: 1839
First you have to add in your named.conf the section about domain2.com. Then since you're going to replicate your domain1.com, just copy the zone file of domain1 to a new file that will be the zone file of domain2 and change any occurence of "domain1" in it to "domain2". You can do it automatically with sed"
Code:
sed 's/domain1/domain2/g zone.domain1 > zone.domain2
The only problem you'll have, is the reverse lookup, since you cannot have an IP address that resolves in 2 different hosts
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 05:58 AM
know what bind, dns, a domain, and an internal network have in common? me neither majortool Linux - Networking 10 07-27-2004 12:42 PM
Migrate from exchange/dns to bind xiaodown Linux - Networking 0 07-15-2004 12:30 PM
DNS/BIND domain 'authority' tisource Linux - Software 7 07-15-2004 06:16 AM
adding win 2000 server domain controller, bind dns GraemeK Linux - Networking 6 08-23-2003 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration