First of all, this is my first post, since I managed to solve all other problems I ever had using Ubuntu by other post on this forum (Thanks for that by the way!), but this time I didn't find the solution, so if the post in the wrong location: sorry!
After a fresh install of Ubuntu Desktop 13.04 (64-bit) on a pc that previously had Ubuntu 12.10 installed, my DNS resolving is giving some strange issues. In short, I can't ping a host name of an internal device, but I can ping the ip address. This only happens internally, so pinging www.google.com or 220.127.116.11 works OK. In the morning, before the upgrade, it worked perfectly and after the upgrade, it doesn't work at all.
I've got a home server running Ubuntu Server 12.04.2 LTS OS with two virtual machines: dns1 (primary master) and dns2 (secondary master), both are using Bind9 for internal DNS resolving and caching, also running Ubuntu Server 12.04.2 LTS.
Both the servers are working without issues, since on other devices (Windows, Android, Ubuntu) resolving and pinging an internal host name is working OK.
Here is an overview of my dns database on the primary master dns server:
And here is an overview of my network configuration on the pc with the issues:
IN NS dns1.home.local.
IN NS dns2.home.local.
dns1 IN A 10.19.91.20
dns2 IN A 10.19.91.21
router IN A 10.19.91.1
homeserver IN A 10.19.91.2
mypc-lan IN A 10.19.91.62
mypc-wifi IN A 10.19.91.92
So what actually happens is:
- Device: eth0 [Thuisverbinding] ----------------------------------------------
HW Address: **:*:**:**:**:**
Carrier Detect: yes
Speed: 1000 Mb/s
Prefix: 24 (255.255.255.0)
DNS: 18.104.22.168 (DNS of my ISP)
me@mypc:~$ ping 10.19.91.1
PING 10.19.91.1 (10.19.91.1) 56(84) bytes of data.
64 bytes from 10.19.91.1: icmp_req=1 ttl=64 time=0.564 ms
64 bytes from 10.19.91.1: icmp_req=2 ttl=64 time=0.641 ms
64 bytes from 10.19.91.1: icmp_req=3 ttl=64 time=0.647 ms
64 bytes from 10.19.91.1: icmp_req=4 ttl=64 time=0.621 ms
--- 10.19.91.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.564/0.618/0.647/0.037 ms
But it seems that resolving the DNS zone works fine, as can be seen here:
me@mypc:~$ ping router.home.local
ping: unknown host router.home.local
(I already changed some settings to replace ;;SERVER: 127.0.1.1#53(127.0.1.1) with ;;SERVER: 10.19.91.20#53, but this didn't solve anything.)
me@mypc:~$ dig router.home.local
; <<>> DiG 9.9.2-P1 <<>> router.home.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20969
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;router.home.local. IN A
;; ANSWER SECTION:
router.home.local. 604800 IN A 10.19.91.1
;; AUTHORITY SECTION:
home.local. 604800 IN NS dns1.home.local.
home.local. 604800 IN NS dns2.home.local.
;; ADDITIONAL SECTION:
dns1.home.local. 604800 IN A 10.19.91.20
dns2.home.local. 604800 IN A 10.19.91.21
;; Query time: 1 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Apr 28 16:23:11 2013
;; MSG SIZE rcvd: 132
Using the host command gives the expected results:
What I think is really strange is that I can sometimes ping router (without .home.local) after I add the search domain through the Network Manager tool, which doesn't work anymore after a reboot:
me@mypc:~$ host router.home.local
router.home.local has address 10.19.91.1
me@mypc:~$ host 10.19.91.1
22.214.171.124.in-addr.arpa domain name pointer router.home.local
This is where I get stuck and I'm hoping that somebody is able to help me with this.
me@mypc:~# ping router
PING router.home.local (10.19.91.1) 56(84) bytes of data.
64 bytes from router.home.local (10.19.91.1): icmp_req=1 ttl=64 time=0.698 ms
64 bytes from router.home.local (10.19.91.1): icmp_req=2 ttl=64 time=0.651 ms
64 bytes from router.home.local (10.19.91.1): icmp_req=3 ttl=64 time=0.597 ms
64 bytes from router.home.local (10.19.91.1): icmp_req=4 ttl=64 time=0.523 ms
--- router.home.local ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 0.523/0.617/0.698/0.067 ms
Sorry for the long post.