DNS entries
Tom H
tomh0665 at gmail.com
Tue Jul 23 15:58:32 UTC 2013
On Mon, Jul 22, 2013 at 8:10 AM, R Kimber <richardkimber at btinternet.com> wrote:
> On Sat, 20 Jul 2013 17:07:56 -0400
> Tom H wrote:
>>>> How are you setting the DNS servers in "/etc/network/interfaces"?
>>>
>>> auto eth0
>>> #NetworkManager#iface eth0 inet dhcp
>>> iface eth0 inet dhcp
>>> dns-nameservers 208.67.222.222 208.67.220.220
>>> dns-search opendns.com
>>
>> You shouldn't have "dns-search opendns.com" here.
>>
>> Do you have a "dhcp=" or dns=" line in
>> "/etc/NetworkManager/NetworkManager.conf"?
>>
>> Is dnsmasq running?
>
> yes:
>
> 17570 ? S 0:00 /usr/sbin/dnsmasq --no-resolv
> --keep-in-foreground --no-hosts --bind-interfaces
> --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid
> --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf
> --cache-size=0 --proxy-dnssec
Mine is (on 13.04):
[root at localhost:~]# ps ax o cmd | grep dns | grep -v grep
/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts
--bind-interfaces
--pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid
--listen-address=127.0.1.1 --conf-file=/var/run/nm-dns-dnsmasq.conf
--cache-size=0 --proxy-dnssec
--enable-dbus=org.freedesktop.NetworkManager.dnsmasq
--conf-dir=/etc/NetworkManager/dnsmasq.d
[root at localhost:~]#
My system's output has a different "--listen-address=" option and has
"--enable-dbus=" and "--conf-dir=" options. IIRC, the first two are
due to changes made between 12.04 and 12.10 or 12.10 and 13.04. The
last doesn't seem to matter because I haven't been able in the past to
pass different options to dnsmasq through it.
Is dnsmasq being kicked off by NM? (It must since you have
"/nm-dns-dnsmasq.conf" but just in case...)
[root at localhost:~]# ps ax --sort=pid o pid,ppid,cmd | grep Net | grep -v grep
761 1 NetworkManager
1596 761 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground
--no-hosts --bind-interfaces
--pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid
--listen-address=127.0.1.1 --conf-file=/var/run/nm-dns-dnsmasq.conf
--cache-size=0 --proxy-dnssec
--enable-dbus=org.freedesktop.NetworkManager.dnsmasq
--conf-dir=/etc/NetworkManager/dnsmasq.d
[root at localhost:~]#
>> What;s the output of "dig" (just "dig"?
>
>>dig
>
>...
> ;; Query time: 43 msec
> ;; SERVER: 192.168.1.254#53(192.168.1.254)
So your DNS server is 192.168.1.254; your router, I assume.
:(
I don't see why your setup isn't working. Why don't you edit
"/etc/resolvconf/resolv.conf.d/head" or "/etc/dhcp/dhclient.conf" to
get the OpenDNS nameservers into "/etc/resolv.conf"?
(Is "/etc/resolv.conf" a symlink to a file in "/run"/"/var/run"?)
More information about the ubuntu-users
mailing list