I've tried editing /etc/hosts on Amahi but the clients aren't reading the changes. Here's an example:
On Amahi:
Code: Select all
[root@cnbc7 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.1.3 cnbc7.com
Code: Select all
[root@cnbc7 ~]# ping cnbc7.com
PING cnbc7.com (10.0.1.3) 56(84) bytes of data.
64 bytes from cnbc7.com (10.0.1.3): icmp_req=1 ttl=64 time=0.077 ms
On a Windows client:
Code: Select all
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
Pinging cnbc7.com [208.73.210.76] with 32 bytes of data:
Reply from 208.73.210.76: bytes=32 time=38ms TTL=241
Reply from 208.73.210.76: bytes=32 time=41ms TTL=241
Reply from 208.73.210.76: bytes=32 time=43ms TTL=241
Reply from 208.73.210.76: bytes=32 time=76ms TTL=241
From nsswitch.conf:
Code: Select all
#hosts: db files nisplus nis dns
hosts: files dns
Edit:
To add verification that I'm using Amahi as the DNS server for the Windows machine (sorry, the thing I'm missing isn't that basic ): (10.0.1.3 is my Amahi server)
Code: Select all
nslookup cnbc7.com
Server: hda.home.com
Address: 10.0.1.3
Non-authoritative answer:
Name: cnbc7.com
Address: 208.73.210.76