4
in my LAN I use a small machine as server/gateway (with Ubuntu 10.04).
On this server runs bind9 DNS server and all LAN clients are using it as unique DNS.
Everything works ok, except that I'd like to find a method to consider server's /etc/hosts
file.
For example, if my server's /etc/hosts
file contains line:
192.168.10.5 testserver05.lan
I'd like to mirror the answer in bind. In fact now I get not found error:
root@nasinsu:/etc/bind# nslookup testserver05.lan
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find testserver05.lan: NXDOMAIN
Is this possible?
check content of /etc/nsswitch.conf (if I recall filename correctly). In case of `hosts:
dns files` your resolver must (?) (TBT!) return answers based on all defined sources – Lazy Badger – 2011-10-26T17:08:55.930