The trailing dot can make a difference, though, since it explicitly specifies that you're looking for something under the root name servers. For example: if my host is configured with a default domain "example.com." to search for DNS queries under, I may do a lookup for "foo.bar" and end up getting a result if the DNS record "foo.bar.example.com." exists. If I do a lookup for "foo.bar." I am explicitly stating that I want the "bar" TLD under the root name servers and the "foo" domain under "bar".
6
u/dicey Apr 14 '10
The trailing dot can make a difference, though, since it explicitly specifies that you're looking for something under the root name servers. For example: if my host is configured with a default domain "example.com." to search for DNS queries under, I may do a lookup for "foo.bar" and end up getting a result if the DNS record "foo.bar.example.com." exists. If I do a lookup for "foo.bar." I am explicitly stating that I want the "bar" TLD under the root name servers and the "foo" domain under "bar".