Cannot resolve Hostname to IP, but IP to hostname works

active-directorydomain-name-systemnetworkingresolve

I have deployed a bunch of windows server VMs on a cloud hosting service. These machines are all joined to a domain controller on the same service, which also hosts DNS. All of the domain-joined machines have dynamic IP (along with the DC).

If I try to resolve any of the hostnames remotely, it fails. For example, I am in SQL Server Reporting Services and I need to connect to a remote server. I provide the hostname of the desired target server and this fails, but then if I provide the IP, this works. How can I pass the hostname and have this resolve to IP?

Is there anything I need to look for in the DNS server? It has records of the hostnames (in forward lookup I think), but reverse is empty. Isn't it the case that forward lookup resolves ip to hostname and reverse resolves hostname to ip? Also, I don't know what he subnet mask because this is not in my control, so the machines may not be in the same subnet – can this be a cause of the problem?

Where is the problem?

Thanks

Best Answer

I'd query the Nameserver directly with those host names with NSlookup to see what that gives you, if thats correct than check on the servers that that DNS server is the one that they need to ask for the IP.

Is there anything I need to look for in the DNS server? It has records of the hostnames (in forward lookup I think), but reverse is empty. Isn't it the case that forward lookup resolves ip to hostname and reverse resolves hostname to ip? Also, I don't know what he subnet mask because this is not in my control, so the machines may not be in the same subnet - can this be a cause of the problem?

Forward resolves hostname to IP Reverse does IP to name. I think thats your problem potentially.