I can get mys hosts file entries to resolve and changes to the hosts file don't show up on nslookup. I'm running Ubuntu
Some search engine blogs are saying that the hosts file isn't checked by DNS lookups but that is exactly what I want it for.
So my nsswitch.conf.conf is
Code:
passwd: compat
group: compat
shadow: compat
#hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
If I insert an entry into /etc/hosts; say
Code:
123.456.654.321 KVT
(in this instance the IP is non existant
Code:
nslookup kvt
Server: 203.2.75.132
Address: 203.2.75.132#53
** server can't find kvt: NXDOMAIN
I can ping the host entry kvt but nslookup or dig fails
to find it. This is extremely useful for local addresses but I am suspecting that Ubuntu and others have discontinued this. I really don't want to install my own DNS server.