I have a server hosting several domains and a DNS premium account at GoDaddy. I would like one of the domains I own, xxx.co, to become the master nameserver for all the other domains, and to use GoDaddy's as my secondary/slave.
I'm an ignorant on DNS so please forgive my misknowledge.
First I may mention the goal of this operation: I use Virtualmin on my server, and its API which, when adding a domain, creates all the DNS records (in BIND 9.7) according to templates I configured.This includes SPF, and as I have spam problems, my server being often registered as spammer, I think it might contribute to solve the problem, and also avoid any manual work in GoDaddy's interface when taking care of a new domain.
In GoDaddy interface, which manages this domain, I add two hosts called ns1.xxx.co and ns2.xxx.co pointing to my server's IP as described here. Then I configure the zone on my server:
$ttl 3600s
@ IN SOA wpcxxxx.amenworld.com. root.wpcxxxx.amenworld.com. (
1302825306
10800
3600
604800
38400 )
@ IN NS wpcxxxx.amenworld.com.
xxx.co. IN A 62.193.xxx.xxx
www.xxx.co. IN A 62.193.xxx.xxx
ftp.xxx.co. IN A 62.193.xxx.xxx
m.xxx.co. IN A 62.193.xxx.xxx
localhost.xxx.co. IN A 127.0.0.1
xxx.co. IN TXT "v=spf1 a mx a:xxx.co ip4:62.193.xxx.xxx?all"
ns1.xxx.co. IN NS wpcxxxx.amenworld.com.
ns2.xxx.co. IN NS wpcxxxx.amenworld.com.
ns1.xxx.co. IN A 62.193.xxx.xxx
ns2.xxx.co. IN A 62.193.xxx.xxx
At this point, I wonder if this domain xxx.co can use its own domain-based nameservers or if it has to stick with the ones from GoDaddy. I tried both.
So I use a second domain example.com, add it on my server through Virtualmin, and I set GoDaddy's as secondary/slave for example.com. Then I want to set ns1.xxx.co and ns2.xxx.co as example's nameservers but instead get this error:
The modifications you requested for the domain XXX.CO have FAILED.
Error: Name server pending addition is not registered: NS1.XXX.CO
Am I right in the first place to wish to achieve this? Will it be usefull for my spam problem? Is there any downside I don't see?
What's happening with this error message? How can I achieve this?
I've followed the steps from here, I have opened my port 953 - was it usefull btw?
Do I have to add ns1.xxx.co and ns2.xxx.co in the hosts file?