You can't necessarily get "the host name" for an IP address, for two reasons:
1) It may not have one: the IP address you are using probably doesn't, for example. Each Domain is connected to one IP, but the reverse is not necessarily true.
2) There can be more than one domain associated with a single IP address.
However, if you can do it, you use
DNS.GetHostEntry[
^]