I am trying to configure a second VPS as NS Webhosting Server whereas I fail to set up the name servers correctly.
At the moment, I am working with two VPS both running apache on CentOS and DirectAdmin control panel.
VPS1 reseller hosting, no admin access. (where domainx.com's NS are pointing to ns1.vps1.com, ns2.vps1.com. AND an A record for 'server' is present thats pointing to the ip of VPS2 for its hostname)
VPS2 full access. (server.domainx.com)
What I am trying to set up now is the NS ns1.domainx.com, ns2.domainx.com on VPS2 that needs to handle new domains that have these NS set.
Therefore, I have created two other A records (ns1 & ns2) on VPS1 under DNS settings with its values VPS2's IP. Below for a better overview.
On domain registrars settings:
DOMAINX.COM
NS1.VPS1.COM
NS2.VPS1.COM
On VPS1 domainx.com - DA DNS settings :
NS1 A x.x.x.x (IP of VPS2)
NS2 A x.x.x.x (IP of VPS2)
YDOMAIN.com - not resolving to the user directory
NS1.DOMAINX.COM - not resolving.
NS2.DOMAINX.COM - not resolving.
The nameserver settings in DA on VPS2 is set to NS1.DOMAINX.COM,NS2.DOMAINX.COM
What I have tried is to add allow-transer to any and notify-to-soa yes; in named.conf (and restarted) still no succes.
I have also tried to add NS records for the domainx.com on VPS1 DA DNS settings:
ns1 NS vps2-server-IP
ns2 NS vps2-server-IP
but this did not really made sense to me. I am thinking I am missing some other configuration but I didn't figure out yet what..
Any ideas?
At the moment, I am working with two VPS both running apache on CentOS and DirectAdmin control panel.
VPS1 reseller hosting, no admin access. (where domainx.com's NS are pointing to ns1.vps1.com, ns2.vps1.com. AND an A record for 'server' is present thats pointing to the ip of VPS2 for its hostname)
VPS2 full access. (server.domainx.com)
What I am trying to set up now is the NS ns1.domainx.com, ns2.domainx.com on VPS2 that needs to handle new domains that have these NS set.
Therefore, I have created two other A records (ns1 & ns2) on VPS1 under DNS settings with its values VPS2's IP. Below for a better overview.
On domain registrars settings:
DOMAINX.COM
NS1.VPS1.COM
NS2.VPS1.COM
On VPS1 domainx.com - DA DNS settings :
NS1 A x.x.x.x (IP of VPS2)
NS2 A x.x.x.x (IP of VPS2)
YDOMAIN.com - not resolving to the user directory
NS1.DOMAINX.COM - not resolving.
NS2.DOMAINX.COM - not resolving.
The nameserver settings in DA on VPS2 is set to NS1.DOMAINX.COM,NS2.DOMAINX.COM
What I have tried is to add allow-transer to any and notify-to-soa yes; in named.conf (and restarted) still no succes.
I have also tried to add NS records for the domainx.com on VPS1 DA DNS settings:
ns1 NS vps2-server-IP
ns2 NS vps2-server-IP
but this did not really made sense to me. I am thinking I am missing some other configuration but I didn't figure out yet what..
Any ideas?
Last edited: