I have registered a domain name example.com from godaddy recently and want to run two nameservers ns1.example.com and ns2.example.com on it. I have followed the process mentioned in godaddy but, got stuck.
I have two ip addresses assigned to my vps from ip1 and ip2. From gaddy, i have added two host ns1 -> ip1 and ns2 -> ip2.
Now, godaddy has confirmed that ns1.example.com and ns2.example.com are registered, so when i do a whois, they show up nicely.
whois ns1.example.com
whois ns2.example.com
Both give proper answers. it shows that both nameserver addresses are registered in the registrars and displays the ip addresses properly.
But, the step I am confused now is, when I do a dig, it fails to resolve to any ip address
dig ns1.example.com
dig ns2.example.com
Both fails. I have a zone defined in bind for example.com. Do i need to setup A records for ns1.example.com and ns2.example.com?
Why does, registering the nameserver addresses and adding host info in godaddy doesn't work?