Assume that I have the example.com
domain registered and that I am running a bind master and slave for this domain.
I have two nameservers, let's pretend they have ip addresses 1.1.1.1 and 2.2.2.2 each with this zone config on them and my webserver is on ip 3.3.3.3.
$TTL 86400
@ IN SOA ns1.example.com. root.example.com. (
2013042201 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
IN NS ns1.example.com.
IN NS ns2.example.com.
ns1 IN A 1.1.1.1
ns2 IN A 2.2.2.2
@ IN A 3.3.3.3
www IN A 3.3.3.3
In my Godaddy control panel, I am supposed to input ns1.example.com and ns2.example.com into the name servers.
But how will it know the ip address of my servers? My nameservers are on 1.1.1.1 and 2.2.2.2. But how will it know this when the domain ns1.example.com and ns2.example.com do not resolve to anything?
For example, it has to know my nameservers are hosted on 1.1.1.1 and 2.2.2.2 first in order to resolve ns1 and ns2. But it clearly doesn't know this. It's missing a huge very important step.
What am I supposed to do?
EDIT: Changed mydomain.com to example.com. I wasn't aware that mydomain.com existed and that there was a domain we could use for examples. Sorry.