"host" works, "dig" fails... what?
So, I just added a new subnet and subdomain to my DNS environment. "host" sees the new just fine, but "dig" fails? In fact, dig even fails to a subdomain that has been around a while. (The new subnet is next to the old one, and they've been combined with a 23-bit netmask.)
... What? They're both making the same query to the same DNS server based on the same resolv.conf file. Existing subdomain/subnet: Code:
[root@admin ~]# host abc012 Code:
[root@admin ~]# host def005 Code:
[root@admin ~]# ping abc012 Any ideas out there? dafydd |
Hi,
By default digs needs a FQDN, unless using the +search option (or +se). In that case it looks in /etc/resolv.conf for the domains defined by the search directive. Since host can resolve both old and new subdomains, I guess they are both present in the search line of /etc/resolv.conf. Try : Code:
dig abc012 +se Regards |
All times are GMT -5. The time now is 10:31 PM. |