Adding a Virtual DNS Server

To add a virtual DNS server

  1. Note down the name and IP address of the new virtual DNS server. For example, ns1.reseller.com 1.2.3.4
  2. Access the server and log on as root user.
  3. To add an IP alias to the Parallels Pro Control Panel server, enter the command,
    /sbin/applifconfig alias 1.2.3.4
  4. To get the IP address aliased each time you start Parallels Pro Control Panel, add the appropriate lines to the end file rc.local, 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. Modify the file options.conf.wp, located at /etc/bind/, and add the IP address to the listen-on option.

    Example:

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

    options {

    directory "/var/named";

    listen-on {127.0.0.1; 1.2.3.4;};< --add the IP address here

    };

  6. Add the line, ns1.reseller.com 1.2.3.4, to the file virtualDNS, located at /var/named/.
  7. To restart the name server, enter the command,

    /etc/init.d/named restart

  8. Using the Server Administrator control panel, create zone record for reseller.com.

    Note: While creating reseller.com make sure that ns1.reseller.com points to 1.2.3.4 and new NS records are added.

  9. To test the new virtual DNS server, run a query (dig/nslookup) on it.

    Note: The newly added virtual DNS server will not be displayed in the virtual DNS page of the Server Administrator control panel.