DNS Zone File Question
I am working to create an internal DNS server to help manage hostnames etc for the servers on my internal network.
I have named all set up and it runs great.
However the question I have regards creating a zone file so that the DNS server redirects computer hostnames to their respective IP's without having to tag on a domain.
so currently if you want to ssh to a machine named "Kiska" using a hostname you have to use:
however I would prefer to simply use only the hostname.
# ssh kiska.example.lan:
How would I create a zone file that has an empty domain?
Thanks for the help.
In case you are using bind, afaik you cannot create a "catch-all" zone.
But this is not necessary anyway.
On each client in /etc/resolv.con, define
or, if you have multiple domains to try
Of course, you do not want to modify each /etc/resolv.conf manually, so this info usually is distributed via dhcp
search example.lan example2.lan
dhcp-options(5) - Linux man page
option domain-name text;
option domain-search domain-list;