It is often useful to check that a given domain name or host is valid, this can be achieved using the checkdnserr() command, as in the following example:
$hostname = “www.domain.com.”;
$dnstype = “MX”;
$bValid = checkdnserr($hostname,$dnstype);
If using a DNS name then ensure the domain ends with the root domain qualifier (the “.”)
If the $dnstype is omitted or [...]
Entries Tagged as 'Tip'
PHP: Checking a DNS entry
May 22nd, 2008 · 1 Comment
Tags: Tip
Java: Common mistakes for new programmers #1
March 17th, 2008 · No Comments
New Java programmers often make similar mistakes when they start out coding - I did it myself when I started out and I have seen many others do the same. One of the most common mistakes is to use a different name (or even a different case) for the Java Class itself and the filename. [...]
Tags: Tip