Damion

Results 4 comments of 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...

![image](https://user-images.githubusercontent.com/12037038/64360158-37e00c00-d04d-11e9-94b0-85fa32b9033a.png)

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).