Damion
Damion
The gethostbyname($host) PHP function returns the IP address for a given hostname. If the DNS server returns a "No Such Name", the kernel/os? will append the domain of your local...

Also if anyone wants to dev a solution, appending `.` to the end of the FQDN passed to gethostbyname($host) will stop the OS from appending the local domain.
Potentially, this may also be resolvable via [nsswitch.conf](http://man7.org/linux/man-pages/man5/nsswitch.conf.5.html).