0
votes

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.

1
downrated for lying about your domain, and using somebody else's domain instead of yours for purpose of example, rather than "example.com" or "example.net", as names set aside for example and documentation purposesDeleted User
I was unaware that mydomain.com even existed, I used it as an example... I am sorry for the confusion, but if you read my post correctly you would have noted the "assume" statement. I never said that I owned the domain... I just said "assume that I do" I wasn't really sure what else to write, so I just thought of "mydomain" on the spot. Is it really that much of a big deal though? I mean, this is an online forum for computer science things, not some business forum where I am trying to scam people.user50449
yes, i read that. It is still inconsiderate to use other people's domains because you don't want to disclose your own. How wouild you like it if other people used your domain for their examples?Deleted User
Yes, you are right. I apologize and I will ensure that this does not happen again.user50449

1 Answers

0
votes

ns1.example.com and ns2.example.com will have to resolve to ip addresses, or they can't be queried. Your problem is that they are hosts of the very same zone they are authoritative for. This circular reference is broken by introducing additional referential records in parent zone, called "glue", or "glue records". These are simply A records with ip addresses of your nameservers, and added only in this special case.