I am using gethostbyname() to retreive the ip of a specific host...but what I want to do is display the nameserver being used to get the ip.

The only way I can think to do this is by doing "nslookup" at the shell and parse the server string. Isn't there a native PHP function that can get the DNS server being queried?