This is a easy way how to give your reseller own DNS
THIS HOW TO WORKS FOR ENSIM PRO 3.X -10.X
Im using
ns1.reseller.com with the ip 64.246.1.1 and
ns2.reseller.com with the ip 64.246.1.2 as an example
first of all, request two IPs from rackshack..
Login to your ensim and add a reseller.. if u already have the reseller add'd.. no worrys.. ;-)
Login to your server as root and type:
/sbin/applifconfig alias 64.246.1.1
and
/sbin/applifconfig alias 64.246.1.2
(make sure you are using the real IPs of your reseller.. and not my example Ips ;-)) )
next thing we have to do is edit the options.conf.wp file and add the reseller IPs
type:
pico /etc/bind/options.conf.wp
and change this line
listen-on { 127.0.0.1;YOURSERVERIP; };
to
listen-on { 127.0.0.1; YOURSERVERIP; 64.246.1.1; 64.246.1.2; };
(again, make sure to use your reseller IPs and not my example IPs.. )
save end exit pico ( CTRL + X, Y and ENTER)
now.. type:
pico /var/named/virtualDNS
and add this 2 lines on that small file
ns1.reseller.com 64.246.1.1
ns2.reseller.com 64.246.1.2
(again, make sure to use your reseller Ips/Domain and not my example Ip/Domain.. )
save end exit pico ( CTRL + X, Y and ENTER)
Now we have to BIND the Ips into your servcer
type:
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
then:
pico -w /etc/sysconfig/network-scripts/ifcfg-eth0:1
and change the following lines
DEVICE="eth0" to DEVICE="eth0:1"
and
IPADDR="SERVER_IP" to IPADDR="64.246.1.1" ( ns1 IP of your reseller)
save end exit pico ,same thing for ns2..
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:2
change DEVICE="eth0" to DEVICE="eth0:2"
and
IPADDR="SERVER_IP" to IPADDR="64.246.1.2" ( ns2 ip of your resller)
now type:
ifup eth0:1
and
ifup eth0:2
restart bind with
/etc/rc.d/init.d/named restart
now Login to ensim and click on "BIND" then to "Zone List" click on the reseller.com domain ( reseller domain= the domain u like to setup Reseller dns)
click on the drop down and choose "Add Address (A) Record"
on "Hostname.domain" type in ns1
on "IP Address" the resller ips of ns1 (64.246.1.1)
click on "add" (u will get a error.. but no worrys about that.. )
do the same for your ns2
..."Add Address (A) Record"
on "Hostname.domain" type in ns2
on "IP Address" the resller ips of ns2 (64.246.1.2)
and add it ( no worrys about the error)
now on the drop down choose "Add Name Server (NS) Record"
on "Name server" type in “ns1.reseller.com”
add it and do the same for ns2..
...drop down choose "Add Name Server (NS) Record"
on "Name server" type in “ns2.reseller.com”
now register the Ips for ns1.reseller.com/ns2.reseller.com on your Register..
wait a day or two for your nameserver to propagate around the web
Use the dig command to see when the ips/DNS is working..
type:
dig reseller.com
u sould see something like this
[root@ensim /root]# dig reseller.com
;; QUESTION SECTION:
;reseller.com. IN A
;; ANSWER SECTION:
reseller.com. 37661 IN A YOURSERVERIP
;; AUTHORITY SECTION:
reseller.com. 37661 IN NS ns1.reseller.com.
reseller.com. 37661 IN NS ns2.reseller.com.
;; ADDITIONAL SECTION:
ns1.reseller.com. 37661 IN A 64.246.1.1
ns2.reseller.com. 37661 IN A 64.246.1.2
Hope this how to helps
Matt
P.S: What u could do is share your Ips( ns1 and ns2 of your own dns) with your reseller..
Just add two a records and two ns records on his domain and let him register the same dns ips ( same ips as your ns1 and ns2 ips).. this works also...