Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
For one thing, you're missing a dot (.) at the end of "sh1.myserver.com" in your zone file.
For another thing, is that a public IP address, or private? If it's a public IP, your service provider needs to set the reverse DNS for that IP, or at least delegate the authority to your, in which case you shouldn't be listing their DNS servers as authoritative for that IP address.
Also a small nit-pick: you shouldn't be listing "root@localhost" as your contact e-mail address for a zone, especially if it's going to be visible to the public. It should be something like: hostmaster.myserver.com. (and you should actually have a hostmaster@myserver.com account or alias).
Oh, and a large nit-pick: you should change your "allow-transfer" statement to "allow-query". If you allow transfer, that allows anyone to download your entire zone file. If you're going to the trouble of changing your real domain to "myserver" before you post it on an Internet forum, I'm going to assume that you really don't want just anyone downloading your entire zone (in this case it's just one IP address, but if you put that statement in your main zones it's going to be a whole lot more). allow-transfer is only for your secondary nameservers to be able to download your new zone file when the primary sends out an updated serial.
Thanks for such a detailed reply.
I've added that dot, it obviously should be there. Thanks.
That's a public IP assigned to a VPS. Seems like I start getting what it's about. Does it have smth to do with AS names? I mean there are the root servers (".") for telling which DNS to ask for resolving (like "." => "org" => "somehost" => etc.). I assume there should be some sequence like that for translating ip into domain as well and it has smth to do with ASs. That's the point I have yet to explore. Any hints?
Thanks for the hint on e-mail. I'll change that.
allow-transfer { any; }; is set for testing purpeses only. the production config includes a link to acl with ips of secondary dns servers
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Reverse DNS has nothing to do with Autonomous System Numbers. It has to do with the fact that your ISP manages the IP addresses and their allocation, so they have control over the reverse zone for your IPs. They could delegate authority for that one IP address to your in their zone, but that's kind of a pain and most ISPs won't do that (although I have heard of some that do). What's much more common is that you can simply open a help ticket with your ISP and ask them to set the PTR record for your IP to something that you choose (you have to tell them). In that case you don't maintain a reverse zone at all, you only have forward zones.
Just because you're using an IP address doesn't mean you control the reverse zone for it. Your ISP has the authority and it's their option to transfer it to you, or not.
Also, if you do control the zone for your IP, that means your ISP will a) have transferred authority to your, so their server will no longer claim to be authoritative and b) not have your PTR record, so even if they were authoritative they would return NXDOMAIN. What this means is that your DNS will be broken if you keep your ISP's DNS servers in the NS records for that reverse zone (unless they're slaved to yours, which is highly unlikely). Your nameservers need to be the only NS records for that zone. If you keep your ISPs NS records in there and they aren't authoritative, they end up being "lame servers".
WOW, thanks. A great explanation. Everything is clear.
I've contacted my VPS provider and they said that's no prob to configure a reverse zone at their side. Slicehost rocks .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.