Configuration

To use our newly configured DNS server we must make sure the rest of hosts in the network know about it.

/etc/network/interfaces:
------------------------
...
auto eth0
iface eth0 inet static
	address 192.168.254.196
	network 192.168.254.0
	netmask 255.255.255.0
	dns-nameservers 192.168.254.195
_$: ping git
PING git.example.com (192.168.254.191) 56(84) bytes of data.
64 bytes from git.example.com (192.168.254.191): icmp_req=1 ttl=64 time=0.168 ms
^C
--- git.example.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.168/0.168/0.168/0.000 ms

_$: ping mail.example.com
PING mail.example.com (192.168.254.193) 56(84) bytes of data.
64 bytes from mail.example.com (192.168.254.193): icmp_req=1 ttl=64 time=0.018 ms
64 bytes from mail.example.com (192.168.254.193): icmp_req=2 ttl=64 time=0.029 ms
^C
--- mail.example.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.018/0.023/0.029/0.007 ms

If the ping does not receive a pong immediately, check with Wireshark for further enlightment.