title: Is it possible to check whether Wildcard DNS is enabled using PHP?
body: <p>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.</p>
  
  <p>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).</p>
  
  <p>Is there any way to check using PHP?</p>
  
  <p>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.</p>
  
  <p>Thanks in advance
  Martin</p>