I'm trying to see if it's possible to check whether wildcard DNS (or wildcard vhosts?) is enabled on the domain a script is running on and have come up blank so far.
I've tried reading the DNS records for the domain in order to look for a "*.domain.com" type entry, but I don't believe that would work for domains running on shared hosting (or it certainly hasn't in the record I checked anyway).
Is there any way to check using PHP?
I'm hoping there is rather as if not it leaves the pretty hackish feeling method of attempting to cUrl a gibberish subdomain to see what message gets returned.
Thanks in advance Martin