Results 1 to 2 of 2
Hello,
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-07-2013 #1Just Joined!
- Join Date
- Nov 2012
- Posts
- 6
DNS Zone File Question
Hello,
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.Code:# ssh kiska.example.lan:
example:
How would I create a zone file that has an empty domain?Code:# ssh kiska:
Thanks for the help.
- 02-07-2013 #2
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 tryCode:domain example.lan
Of course, you do not want to modify each /etc/resolv.conf manually, so this info usually is distributed via dhcpCode:search example.lan example2.lan
dhcp-options(5) - Linux man page
Code:option domain-name text; option domain-search domain-list;
You must always face the curtain with a bow.


Reply With Quote
