How to determine whether xyz.example.com uses a wildcard A record

domain-name-systemnetworkingsubdomain

If you have many sub-domain names like xxx.example.com, xyz.example.com etc, you can solve these through server-side scripting or other means by using a wildcard A record for *.example.com in your DNS.

How can I determine whether a wildcard domain is configured for any given domain name? Using http://network-tools.com gives a lot of information, but doesn't reveal this. If I need to use commandline tools: I use Windows. One such example that uses a wildcard domain DNS, I think, is blogspot.com.

Best Answer

You can literally query "*.example.com" and find out if there is a wildcard, but it is impossible to tell the difference between these two zones:

xyz.example.com.  IN A  1.2.3.4
*.example.com.    IN A  1.2.3.4

and

*.example.com.    IN A  1.2.3.4

i.e., you can't find out whether you're being answered by a wildcard for a given query, only that a wildcard exists.

I haven't found any Web-accessible looking glasses that support it yet, as they seem to think it's invalid input, but raw dig (or even nslookup on Windows) works like a charm:

c:\Some\User> nslookup
> *.my-test-domain.com
Server:  Wireless_Broadband_Router.home
Address:  192.168.1.1

Non-authoritative answer:
Name:    *.my-test-domain-is-not-a-real-domain.com
Address:  1.2.3.4

Or with dig:

# dig +short '*.not-a-real-domain.com'
1.2.3.4
Related Topic