Sorry, forgot about it after I got it working. Remembered after I rebooted and the wife came yelling that she couldn't get Netflix. Opps. Necessity is the mother of fixing!
Code:
clickwir@ubuntu:~$ sudo service dnsmasq start
* Starting DNS forwarder and DHCP server dnsmasq [ OK ]
status: Unknown job: squid
clickwir@ubuntu:~$ dig kingston.com
; <<>> DiG 9.8.1-P1 <<>> kingston.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 25391
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;kingston.com. IN A
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Aug 11 00:13:56 2012
;; MSG SIZE rcvd: 30
clickwir@ubuntu:~$ ps aux | grep dns
dnsmasq 2205 0.4 0.0 30404 2572 ? S 00:13 0:00 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new
clickwir 2298 0.0 0.0 9388 928 pts/2 R+ 00:14 0:00 grep --color=auto dns
clickwir@ubuntu:~$ sudo service dnsmasq stop
status: Unknown job: squid
* Stopping DNS forwarder and DHCP server dnsmasq [ OK ]
clickwir@ubuntu:~$ ps aux | grep dns
clickwir 2392 0.0 0.0 9388 924 pts/2 S+ 00:15 0:00 grep --color=auto dns
clickwir@ubuntu:~$ sudo dnsmasq
clickwir@ubuntu:~$ ps aux | grep dns
nobody 2397 4.0 0.0 30404 2580 ? S 00:16 0:00 dnsmasq
clickwir 2399 0.0 0.0 9388 928 pts/2 S+ 00:16 0:00 grep --color=auto dns
clickwir@ubuntu:~$ dig kingston.com
; <<>> DiG 9.8.1-P1 <<>> kingston.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8726
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;kingston.com. IN A
;; ANSWER SECTION:
kingston.com. 3600 IN A 63.251.221.6
;; Query time: 690 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Aug 11 00:16:08 2012
;; MSG SIZE rcvd: 46
So I started the service, tried a dig. Got a REFUSED. Stopped the service and just ran 'sudo dnsmasq' by itself and no get NOERROR and responses are fast and accurate.
It must be a config thing because I've mirrored the config on 2 servers, they are both doing the same thing. The second server was just wiped and reloaded with Ubuntu Server 12.04 64bit last week. Though I didn't test dnsmasq as a service before copying over my config, so I'm assuming a bit there.
The service does start at startup, that's how I refound out about the problem. I was rebooting because of a kernel update and forgot I had the dnsmasq issue. I installed it via 'sudo apt-get install dnsmasq', just like I always have.
Bookmarks