Removing a Virtual DNS Server

To remove a virtual DNS server

  1. Note down the host name and IP address of the virtual DNS server to be removed. For example: ns1.reseller.com 1.2.3.4
  2. Access the server and log on as root user.
  3. To remove an IP address bound to the server or network card, enter the following command.

    /sbin/applifconfig delete 1.2.3.4

  4. Remove the following lines from the file rc.local, which is located at /etc/rc.d/.

    /sbin/applifconfig alias 1.2.3.4

    ...

    where 1.2.3.4 is your reseller's DNS IP address.

  5. Remove the IP addresses from the file options.conf.wp.

Example:

//This file stores the options statement maintained by Parallels Pro Control Panel

options {

directory "/var/named";

listen-on {127.0.0.1; 1.2.3.4;}; //< --remove this IP address.

};

  1. Remove the following line from the file virtualDNS located at /var/named/.

    ns1.reseller.com 1.2.3.4

  2. Through the Server Administrator control panel, modify the zone record for reseller.com.

    Note: While modifying reseller.com, make sure that ns1.reseller.com does not point to 1.2.3.4 and new NS records are set.

  3. To restart named, enter the following command.

    /etc/rc.d/init.d/named restart

  4. To restart virtual hosting, enter the following commands.

    /etc/rc.d/init.d/virtualhosting stop

    /etc/rc.d/init.d/virtualhosting start