Using dnsmasq for local DNS caching
Hi,
I'm following https:/
I've done everything:
$ grep domain-name-servers /etc/dhcp3/
prepend domain-name-servers 127.0.0.1;
. . .
$ grep listen-address /etc/dnsmasq.conf
listen-
$ cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.0.1
See, all the configuration done. Now:
% service dnsmasq restart
* Restarting DNS forwarder and DHCP server dnsmasq [ OK ]
$ dig ubuntu.com
;; Query time: 8 msec
;; SERVER: 192.168.
^^^^
$ dig ubuntu.com
;; Query time: 53 msec
;; SERVER: 192.168.
^^^^
DNS request is still going through 192.168.0.1.
FYI, local DNS caching is working fine:
$ dig debian.org @localhost
;; Query time: 69 msec
;; SERVER: 127.0.0.
$ dig debian.org @localhost
;; Query time: 0 msec
;; SERVER: 127.0.0.
^^^^
Please help
thx
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu dnsmasq Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: