Hi all, I'm looking for some information/recommendations about how to handle subdomains in pdns. I'm experiencing some odd behavior which appears as though it might be correct, but had previously worked when we ran bind as our resolver.
Some quick background. We had several bind servers running as both authoritative and recursive nameservers. My understanding is that since all of the servers were authoritative, they answered queries for local domains directly without having to hit the root nameservers. With the new pdns recursors, I just let recursion happen and a query for the local domain goes through the motions just like any other domain. I'm aware I can forward if needed, I just haven't bothered yet. I believe "normal" DNS operations are working. I am hitting an odd case that isn't, though. If I shortcut DNS by not appending the domain, it only works for the primary domain. (If there's a technical term for this, I'd love to know what it is) For example, my primary domain is example.com and I have two subdomains, dev.example.com and stage.example.com. If I perform a query on the primary domain, it works fine, even with just the hostname: $ host www.example.com www.example.com has address 192.168.1.1 $ host www www.example.com has address 192.168.1.1 For the subdomains, though, only a FQDN lookup works : $ host www.stage.example.com www.stage.example.com has address 10.0.0.1 $ host www.stage Host www.stage not found: 3(NXDOMAIN) And the dev subdomain is even more interesting : $ host www.dev.example.com www.dev.example.com has address 172.16.0.1 $ host www.dev www.dev has address 127.0.53.53 www.dev mail is handled by 10 your-dns-needs-immediate-attention.dev. Though I believe the dev response may be a result of the root nameservers having an entry for a "dev" tld, apparently owned by Google. Regardless, my understanding here is that the presence of a dot in the lookup means that host is sending the request to the recursor without appending the domain. If I add "options ndots:2" to my /etc/resolv.conf, then everything works as I would expect. But it appears that bind was doing something to handle these cases without having to make client changes. Is this possible with pdns? Or am I missing something important here? Thanks, -- --------------------------- Jason 'XenoPhage' Frisvold xenoph...@godshell.com --------------------------- "Any sufficiently advanced magic is indistinguishable from technology.\" - Niven's Inverse of Clarke's Third Law _______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users