I currently have a dnsmasq DNS server running on my desktop Ubuntu 15.04 installation. I use it to point to local devices on my network. For example, I have a record linking kerberos.dgourd.com to 192.168.1.106 (my desktop's IP address). However, this name never gets resolved.
I setup my router to hand out three DNS servers:
- 192.168.1.106 (My local DNS server)
- 126.96.36.199 (Two Google DNS servers)
On my laptop, also running Ubuntu 15.04, I ran
nmcli dev show | grep DNS to make sure it is using the proper nameservers and got this:
IP4.DNS: 192.168.1.106 IP4.DNS: 188.8.131.52 IP4.DNS: 184.108.40.206 IP4.DNS: 192.168.1.1
dig kerberos.dgourd.com results in no record being returned:
; <<>> DiG 9.9.5-9ubuntu0.2-Ubuntu <<>> kerberos.dgourd.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 51586 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;kerberos.dgourd.com. IN A ;; Query time: 1 msec ;; SERVER: 127.0.1.1#53(127.0.1.1) ;; WHEN: Sat Aug 22 16:31:48 CDT 2015 ;; MSG SIZE rcvd: 37
dig @192.168.1.106 kerberos.dgourd.com results in the proper record being returned:
; <<>> DiG 9.9.5-9ubuntu0.2-Ubuntu <<>> @192.168.1.106 kerberos.dgourd.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51972 ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;kerberos.dgourd.com. IN A ;; ANSWER SECTION: kerberos.dgourd.com. 0 IN A 192.168.1.106 ;; Query time: 5 msec ;; SERVER: 192.168.1.106#53(192.168.1.106) ;; WHEN: Sat Aug 22 16:36:05 CDT 2015 ;; MSG SIZE rcvd: 53
At this point, I'm completely stumped as to why this is happening. Sometimes, my computer will spontaneously start properly resolving these addresses, and then revert back to ignoring my DNS server. Does anyone have any suggestions on what I can do next to further investigate this isssue?