Hostname in DNS without IP

We have windows 2008 Domain. Sometimes I use NSlookup <hostname>, I get the hostname but no IP address. If I ping the hostname then there is no reply.

In our environment some computers have static IP addresses and some are DHCP clients.

In both cases how does DNS get updated with IP addresses and hostnames.
I know when you join computer to the domain hostname gets added to the table, how about IP address ?

Thank you
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
DHCP can be configured to update Dynamic DNS on behalf of a client (which is especially useful for clients which don't handle their own registration...)

But in general, Windows clients will attempt to register themselves with their DNS server.
jskfanAuthor Commented:
on the link above, I have not found where it states DHCP can be configured to update dns on behalf of the client
jskfanAuthor Commented:
Are You Protected from Q3's Internet Threats?

Every quarter, WatchGuard's Threat Lab releases a security report that analyzes the top threat trends impacting companies around the world. For Q3, we saw that 6.8% of the top 100K websites use insecure SSL protocols. Read the full report to start protecting your business today!

jskfanAuthor Commented:
If I understand
DHCP server can be configured to Update DNS client   A and PTR record on DNS server.

If DHCP Server is not configured to do that role, will the workstation (that is joined to the domain) be able to update its A and PTR record on DNS server or just its A record ?
Will SzymkowskiSenior Solution ArchitectCommented:
The default setting for DHCP is to allow the client to update their own DNS registration. However it is better to force the DHCP server to handle this in case there is something wrong with the client.

You have to manually set this setting in the DHCP settings. This will only update clients within DNS when the machine is part of the domain.

jskfanAuthor Commented:
If DHCP Server is not configured to do that role, will the workstation (that is joined to the domain) be able to update its A and PTR record on DNS server or just its A record ?
Will SzymkowskiSenior Solution ArchitectCommented:
It will update both if you have a Reverse Zone created for that subnet.

I personally do not like to rely on the clients and would rather force this through DHCP server, which i beleive you have much more control over.

But to answer your question, as long as the Reverse zone is present it will update both.

jskfanAuthor Commented:
Ok Guys..
if a client is turned off then from another computer I run Nslookup <hostname>
I get the DNS server name and IP address that resolved the hostname, but below it I get just the hostname of the client ,no IP address.

I know the client is offline, but I believe its hostname/IP address should still be on DNS table. Correct? and the NSlookup should still be able to display the Hostname as well as the IP address. Correct?
Which is not in my case...
Does that mean DHCP server is not configured to update DNS server for clients ?
Dave BaldwinFixer of ProblemsCommented:
I thought that if it was offline and it's IP is managed by DHCP, that it does not necessarily have an IP address.  At least not until it is back online and requests an IP address from the DHCP server.  ??  In my network, when I plug in a computer that runs under DHCP, it is likely to get the lowest available IP address that is not currently allocated to another computer.  I have about 20 spare computers that only get plugged in occasionally.  They almost always get an IP address between and
Henrik JohanssonSystems engineerCommented:
DNS result of hostname without IP indicates you try to lookup CNAME record pointing on A record that doesn't exist.
jskfanAuthor Commented:
Henrik Johansson

 there is no reason to have CNAME for a workstation.
Henrik JohanssonSystems engineerCommented:
Agree that CNAME isn't needed for workstations in normal cases, but it can be used in special cases due to for example migration or domain rename/restructure. Your resolver's behavior reminds me of the CNAME dead end scenario.
Have you confirmed that the record you try to resolve exist as A record in the DNS zone resolved (DNS suffix search order if just resolving hostname instead of FQDN)?

If using dynamic DNS registration: For Windows OS, the DNS registration is done by DHCP client service (yes, the service is used even if using static IP configuration)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
I wonder if DHCP server when updating DNS on behalf of DHCP clients, whether it is not updating  the IP address, just Hostname (in case the Lease expired and the client never renewed the lease ) ?
jskfanAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.