Originally Posted by showe123
I don't know if my Mac server background is causing my misunderstanding of DNS or what but it does seem to me that you can't create a cname until your A record points to a machine. What am I missing?
Thanks again for comments.
Again, I hate cnames, but you don't actually need an A RR in the zonefile if the cname points to a hostname outside the zone - i.e., another domain.
Well, for starters, follow bathory's model above and you should be fine (using A records instead of cname records). cnames just increase recursion unnecessarily and you can assign as many A RRs as you want to the same IP address anyway.
Now I don't even know how to copy a floppy on a Mac, and prolly never will, but there's a couple of things I can mention, expanding upon bathory's example of a well formed set of records.
first, don't forget those periods!
Second, you can use *shorthand*, if you like, which means that you could just put the hostname on the left with no period and then BIND will append the zone.
vmware IN A x.x.x.x
Note there is no period. BIND will append the zone so that "vmware" is now "vmware.plantsareperfect.com." for you.
but if you do a
vmware.plantsareperfect.com IN A x.x.x
Then you're going to end up with the following hostname:
When in doubt - do it longhand.
Third, if your nameserver is going to be in the same domain as the zone you're editing (Not the best approach), then you're going to need an NS RR as well as an A RR for the host that is the nameserver.
To be rfc compliant, there should be a glue record for the nameserver.
Finally, if you're nameserver is outside the zone - say, you use ns1.jomama.com, then all you need in this particular case is an NS record for the nameserver.
I hope that helps, Oh! and also... welcome to LQ