I have alocal setup bind9 on a 16.04 server with a domain and can .test it with a windows client and an ubuntu 16.04 desktop client. This is the setup which is according to How do I do a complete BIND9 DNS Server Configuration with a hostname?:
domain is "test.lan"
srv 192.168.0.1, IP configured via /etc/network/interfaces. Hosts
file contains domain test.lan and srv entry.
linuxpc, 192.168.0.2, IP configured via desktop: static IP with DNS and search
domain magrathea.lan. Hosts file contains domain test.lan
and own and srv entries.
winpc, 192.168.0.3, IP configured via desktop: static IP with DNS and domain
suffix for this connection: magrathea.lan
What I see on the clients:
linuxpc$ ping winpc
PING winpc.test.lan (192.168.0.3) 56(84) bytes of data
64 bytes from winpc.test.lan (192.168.0.3): icmp_seq=1 ttl=...
linuxpc$ ping winpc.test.lan
PING winpc.test.lan (192.168.0.3) 56(84) bytes of data
64 bytes from winpc.test.lan (192.168.0.3): icmp_seq=1 ttl=...
linuxpc$ ping winpc.test
ping: unknown host winpc.test
C:>ping linuxpc
Pinging linuxpc.test.lan [192.168.0.2] with 32 bytes of data:
Reply from 192.168.0.2: bytes =32 time>1ms TTL=64
C:>ping linuxpc.test.lan
Pinging linuxpc.test.lan [192.168.0.2] with 32 bytes of data:
Reply from 192.168.0.2: bytes =32 time>1ms TTL=64
C:>ping linuxpc.test
Ping request could not find host linuxpc.test. Please check the name...
Reply from 192.168.0.2: bytes =32 time>1ms TTL=64
On the server (same with winpc as ping target):
serv$ ping linuxpc
ping: unknwon host linuxpc
serv$ ping linuxpc.test.lan
PING linuxpc.test.lan (192.168.0.2) 56(84) bytes of data
64 bytes from linuxpc.test.lan (192.168.0.2): icmp_seq=1 ttl=...
serv$ ping linuxpc,test
ping: unknwon host linuxpc.test
I did try to add to the interface file of the server serv
the line
dns-search test.lan
, but this did not change the result above.
Questions
- 1) Why does the server ping only work with the fully qualified domain name?
- 2) Why can neither PC resolve ".test" without ".lan"? And what can I do about it?
- 3) Can I use "test" for a intranet domain and what is are the disadvantages compared to "test.lan"?
Thanks for your help