Migrating Microsoft DNS to OES Linux
Novell Cool Solutions: Feature
By Michael Faris
Reader Rating
from 3 ratings
|
Digg This -
Slashdot This
Posted: 20 Jul 2007 |
Since DNS in an MS environment "generally" follows bind rules, it makes better sense to run DNS on a Linux platform. The steps to migrate the DNS zones from Windows to Linux are fairly simple, just a bit more time consuming than NetWare.
NOTE: Do not run the DNS service in YaST before the process explained here is complete, it will overwrite any changes.
- Copy each zone file located in %SystemRoot%/System32/dns/ from your Windows server to your workstation. All zone files have a ".dns" extension.
- With a text editor, open the zone file and add the following to the beginning of the file:
$ORIGIN . $TTL 3600 ; 1 hour
- Change the following line from:
@ IN SOA [servername]. hostmaster. (
to:
zonename.com IN SOA [OESservername].zonename.com. [username]/[email.com]. (
- Remove the "@" at the beginning of the NS line, and change the server name to the OES servername.
- Insert a line before the first zone record and type the following, changing the zonename.com to yours.
$ORIGIN zonename.com.
- Since Microsoft doesn't use a named config file to identify all the zones serviced by that server, pipe a dir listing of the %SystemRoot%/System32/dns/ to a text file and save it to your workstation.
dir > zones.txt
- Edit this text file and remove the ".dns" from the listings.
- SSH to the OES Linux server and switch to su.
- edit /etc/named.conf
- Go down to below the last "};"
- Copy the zone information retrieved from the zones.txt and paste it into the file.
- Save and exit.
- Copy the file /etc/named.conf to /var/lib/named/etc/named.conf
Migrating the zone data
- Copy the revised zone files for the master zones you wish to migrate from your workstation to /var/lib/named/master on your OES Linux server.
- Copy the revised zone files for the master zones you wish to migrate from your workstation to /var/lib/named/slave on your OES Linux server.
Once you're done with all your zones, don't forget in-arpa zones, configure named to start automatically on boot using chkconfig named.
Be sure to disable DNS on your Windows server and edit your DHCP and/or clients to utilize the new DNS server.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
