H-Sphere Documentation Sysadmin Guide

For more information contact us at info@psoft.net

Moving DNS

 

Related Docs:  

DNS Creator

DNS servers can be moved only to Linux/Unix boxes. You can't move DNS to a Windows platform. To move a DNS server to another box, you need to do the following:

  1. Prepare a new box with DNS using H-Sphere installer.
  2. Using E.Manager, create a new physical server and add the DNS server group (or add this group to the physical server you are planing to move DNS server to);
  3. Stop the Control Panel;
  4. In the H-Sphere database run the following command:
    update l_server set p_server_id=[new_p_server_id] where id=[id_of_DNS_logical_server];
    (1 record)
    update l_server_ips set ip='[new_DNS_server_IP]', mask='[new_DNS_server_mask]' where l_server_id=[id_of_DNS_logical_server] and flag=4;
    (1 record)
    select * from l_server_ips where l_server_id=[id_of_DNS_logical_server] and flag in (5,6);
  5. Move all IPs selected from H-Sphere database (with flags 5 and 6) to the new server. This means that you need to remove these IPs from the network interface on the old DNS server, /etc/named.conf ("Listen on" directive) and /hsphere/local/network/ips files and set them on new server (on network interface, /etc/named.conf and /hsphere/local/network/ips files);
  6. There are two possibilities to move the DNS data: physical move and DNS zones recreation.

    - Physical move:
    1) move the /hsphere/local/var/named directory from old DNS server to the new server;
    2) change the ownership of moved files to named:named:
      chown -R named:named /hsphere/local/var/named
    3) on the rest of DNS servers, for slave zones which had masters set to the old DNS server IP, change it to the new DNS server IP (using SED or any other method);
    4) restart named.
    - DNS recreation tool:
    1) log into your control panel server as cpanel user running the following command:
    su -l cpanel
    2) execute the following command:
    java psoft.hsphere.tools.DNSCreator -m db -dz
    (Warning: if you have a number of DNS zones, this process can take a lot of time).
  7. Start the Control Panel.
  8. Change the IP in A DNS record for DNS server in service DNS zone (using Control Panel).

Related Docs:  

DNS Creator



Home   Products   Services   Partners   Support   News   Contact   Forum
© Copyright 1998-2003. Positive Software Corporation.
All rights reserved.