using dns=dnsmasq in fedora19



Hi!

I am trying to use dnsmasq with NetworkManager. So I enabled it in .conf, restarted the system and - got no effect. I expected resolv.conf to contain "nameserver 127.0.0.1" but it is not there.

How can I make sure that dnsmasq plugin is actually compiled into the NetworkManager?

Thank you.


[aik aik ~]$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifcfg-rh
dns=dnsmasq

[aik aik ~]$ cat /etc/NetworkManager/dnsmasq.d/local
server=/wecm.au.ibm.com/8.8.8.8

server=/ibm.com/9 0 144 50 wc0
server=/ibm.com/9 0 146 50 wc0
server=/9.in-addr.arpa/9 0 144 50 wc0
server=/9.in-addr.arpa/9 0 146 50 wc0

[aik aik ~]$ cat /etc/dnsmasq.conf | grep conf-dir
conf-dir=/etc/NetworkManager/dnsmasq.d

[aik aik ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
domain home.gateway
search home.gateway
nameserver 192.168.1.254

[aik aik ~]$ sudo netstat -apn | grep 53
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3535/sendmail: acce tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 3456/dnsmasq tcp 0 0 9.185.126.119:36083 9.17.136.13:1533 ESTABLISHED 1435/pidgin tcp6 0 0 :::53 :::* LISTEN 3456/dnsmasq udp 0 0 127.0.0.1:55316 0.0.0.0:* 1425/skype udp 0 0 0.0.0.0:53 0.0.0.0:* 3456/dnsmasq udp 0 0 0.0.0.0:45539 0.0.0.0:* 3500/dhclient udp6 0 0 :::53 :::* 3456/dnsmasq

[aik aik ~]$ sudo ps ax | grep NetworkManager
 4402 ?        Ssl    0:04 /usr/sbin/NetworkManager --no-daemon
5001 ? S 0:00 /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-client.action -pf /var/run/dhclient-em1.pid -lf /var/lib/NetworkManager/dhclient-6695d867-9b3b-47ce-8c07-5f42f2d0f31b-em1.lease -cf /var/lib/NetworkManager/dhclient-em1.conf em1
10535 pts/0    S+     0:00 grep --color=auto NetworkManager
[aik aik ~]$ sudo ps ax | grep dns
 3456 ?        S      0:00 /usr/sbin/dnsmasq
10539 pts/0    R+     0:00 grep --color=auto dns

[aik aik ~]$ NetworkManager --version
0.9.8.0-1.fc18

--
Alexey


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]