I've setup a wildcard CNAME entry as an alias for one of my servers that looks like this:
*.custom.example.my.home
When I try to resolve matching entries without specifying the domain (e.g. asdf.custom
) I get different behaviours from OS X, Linux and Windows. So just to clarify for all these OSs specifying the fully qualified domain name (e.g. asdf.custom.example.my.home
) will lead to a successful lookup.
For Linux and OS X the specified DNS search suffixes are tried as expected, so the entries are resolvable, ping works, the webserver running on the server can be reached whereas in Windows none of these simple networking operations work.
PS C:\Users\> ping asdf.custom
Ping request could not find host asdf.custom Please check the name and try again.
PS C:\Users\> .\nslookup.exe asdf.custom
Server: 192.168.X.X
Address: 192.168.X.X#53
** server can't find asdf.custom: NXDOMAIN
What I suspect is that the Windows DNS implementation assumes that finding the dot it is dealing with the absolute name already, while it should actually try to go through the configured DNS suffixes. I'm wondering if there is a setting to instruct it to do so.
I'm observing this behaviour for Windows 7 / Server 2008, but haven't tried anything else.