Jump to content

php + check domain name script


phppaper

Recommended Posts

You can use checkdnsrr() this will check dns records for the domain you enter. You can have it check for MX, A, CNAME records etc... It defaults to MX records.

 

That would probably be the easiest. Run a domain name through that, if it returns true, the domain exists, if it returns false, then it is probably available for purchase.

 

I use this in combination with an email formatting regex string to ensure that email addresses are not only valid format, but a valid domain as well.

 

Nate

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.