DNS Migration

From MicroFocusInternationalWiki
Revision as of 11:26, 8 May 2007 by Lfbernardo (Talk | contribs) (Migrating a DNS Service from NetWare to Linux)

Jump to: navigation, search

Migrating a DNS Service from NetWare to Linux

Being reasonably new to Linux myself I decided to simplify the DNS migration steps supplied by Novell for those administrators embarking on the migration of services from NetWare to Linux. This process was tested migrating the DNS from a Netware 6.5 server to a SLES 9 SP3 server. The process should work in exactly the same way if you're migrating to SLES 10 or OES 1 (Linux).

Install the DNS server

  1. Start YaST with the command yast.
  2. Select Software -> Install and Remove Software. Press enter.
  3. Begin a search in YaST by pressing alt+s.
  4. Search for the package named bind.
  5. Select the bind package using the space bar, ensuring that it shows a + next to the package.
  6. Accept the installation of the package by pressing alt+a.
  7. YaST will prompt you for your installation CD, and initiate the copy and install process.

Setup the zones on the destination server

  1. If YaST isn't already open, start it with the command yast.
  2. Select Network Services -> DNS Server. Press enter.
  3. Move the cursor six down to DNS zones.
  4. Tab to zone name field.
  5. Type in the name of the zone you need to create, select the type, then press alt+a to add the zone.
  6. The above step needs to be repeated for all the zones which you will be migrating to this server.
  7. When you have completed adding the zones, press alt+f to finish the setup.

Migrate the zone data

  1. Each DNS server has a copy of the zone files in SYS:\ETC\DNS. The zone files have the file extension ".db". Be aware of whether your NetWare server is setup as a 'master' / 'primary' or 'slave' / 'secondary'.
  2. Copy the zone files for the master zones you wish to migrate from your source NetWare server to /var/lib/named/master on your destination server.
  3. Copy the zone files for the slave zones from your source NetWare server to /var/lib/named/slave on your destination server.
  4. Remove the .db extension from each file. Assuming the zone is example.com, you can use the command mv example.com.db example.com.

Starting the service

Manual startup

  1. Start the DNS Server through the command rcnamed start.
  2. Check that the service has started with the command chkconfig named. The command should display named on.

Automatic startup

If you require the service to start at boot time the following commands will ensure that this happens for the correct run levels. All the commands below are actioned from the command line, either on the server console or via SSH.

  1. type "chkconfig -l named", this will return a response similar to "named 0:off 1:off 2:off 3:on 4:off 5:on 6:off". In this case the service will start at boot for runlevels 3 & 5 which is correct for most systems.
  2. If the above step displayed off for all the runlevels you can add it by typing "chkconfig -a named", this will automatically add the service to the correct runlevels. You can verify this step by using "chkconfig -l named" again.
  3. If however you wish the service not to start at boot you can type "chkconfig -d named" which will remove automatic startup from all runlevels.

References