Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to configure Bind for internal LAN usage only (Linux server, Windows clients) and I would like to resolve workstation both by fqdn and shortname.
For example, without DNS server, supposing to have a host named host001 I'm able to do:

    nslookup host001
    ping host001

And it works. Using a DNS server I need to specify the FQDN:

    nslookup host001.example.com
    ping host001.example.com

Is there a way to enter a shortname in DNS so writing host001 I obtain the resolve query of host001.example.com?

Thank You

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The way I usually see this done is by having the DNS server resolve just the FQDN, but adding the domain to the search list in the DNS config on the clients. You can push this out to the clients via DHCP. I have two networks running in this way and it just works, with no issues on Windows, Linux, or Mac.

share|improve this answer
    
Hello Bart, you are right, it's working correctly this way. Thank you for your time :) –  Eddie C. Sep 2 '12 at 10:05
    
This solutions seems somewhat inelegant. I'm thinking of upgrading my dnsmasq install with master/slave bind9... I know in dnsmasq one can specify the domain and expand-hosts option to achieve the same thing without having to use dhcp to set a search domain. –  Cyclone Mar 2 '13 at 5:31

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.