Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a dhcp in my home and I would like to setup a dns server too. I would like to implement a linux solution but I think I can't get hands on without understanding - very superficially - if I can achieve such result.

My pc (hostname: test) gets a 192.168.1.7 from dhcp. Its dns server is my router (192.168.1.1). How can the router relate my ip change (as soon as the lease is over) to my hostname?

share|improve this question
add comment

migrated from serverfault.com Jun 28 '11 at 16:06

This question came from our site for professional system and network administrators.

2 Answers

up vote 3 down vote accepted

Most assuredly your router is not a DNS server, it's a DNS forwarder/resolver. It resolves external DNS queries for internal clients but does not host any DNS zones.

You'll need to install and configure an internal DNS server and zone for your internal clients and configure your DHCP server to register the A records on behalf of the DHCP clients. You'll want to configure the DHCP options for the correct DNS suffix (to match your DNS zone) so that the zone will be correctly populated with the A records for your internal DHCP clients.

share|improve this answer
    
So... Why if I set my router in both clients' dns configuration and ping each other using name it works? –  Pitto Jun 28 '11 at 14:39
    
Are you pinging the FQDN of each client or the NetBIOS name of each client? What OS are the clients running? Does your router host a zone for your internal DNS namespace? If not, then the clients are able to ping each other via broadcasts or LLMNR. –  joeqwerty Jun 28 '11 at 14:44
add comment

If you install a NS server on your PC, you would want to change it from a dynamic address (DHCP) to a static one. This way you won't have to reconfigure DHCP every time your PC changes its IP address.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.