页次: 1
通过NetworkManager启动dnsmasq
~ systemctl status NetworkManager -l [1:41:01]
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
Active: active (running) since 三 2015-05-27 01:41:01 CST; 2s ago
Main PID: 2720 (NetworkManager)
CGroup: /system.slice/NetworkManager.service
├─2720 /usr/bin/NetworkManager --no-daemon
├─2729 /usr/bin/dhclient -d -q -sf /usr/lib/networkmanager/nm-dhcp-helper -pf /var/run/dhclient-enp4s0f2.pid -lf /var/lib/NetworkManager/dhclient-0b54e020-6bcf-4ebd-af41-20555391ab31-enp4s0f2.lease -cf /var/lib/NetworkManager/dhclient-enp4s0f2.conf enp4s0f2
└─2736 /usr/bin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/NetworkManager/dnsmasq.conf --cache-size=400 --proxy-dnssec --conf-dir=/etc/NetworkManager/dnsmasq.d
5月 27 01:41:01 arch NetworkManager[2720]: <info> Policy set '宽带连接' (enp4s0f2) as default for IPv4 routing and DNS.
5月 27 01:41:01 arch NetworkManager[2720]: <info> DNS: starting dnsmasq...
5月 27 01:41:01 arch NetworkManager[2720]: <info> Writing DNS information to /usr/bin/resolvconf
5月 27 01:41:01 arch dnsmasq[2736]: started, version 2.72 cachesize 1000
5月 27 01:41:01 arch dnsmasq[2736]: compile time options: IPv6 GNU-getopt DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect
5月 27 01:41:01 arch dnsmasq[2736]: using nameserver 211.162.96.41#53
5月 27 01:41:01 arch dnsmasq[2736]: using nameserver 211.162.96.2#53
5月 27 01:41:01 arch dnsmasq[2736]: using nameserver 127.0.0.1#35353
5月 27 01:41:01 arch dnsmasq[2736]: cleared cache
5月 27 01:41:01 arch NetworkManager[2720]: <info> (enp4s0f2): Activation: successful, device activated.
问题1 : dnsmasq中有运行参数\conf-file\conf-dir,是不是按照顺序加载执行,有重复项就以后面为准?我觉得是,不过不确定.
问题2 :在/etc/NetworkManager/dnsmasq中,怎么设置,让前面的参数如--no-resolv --keep-in-foreground --no-hosts --bind-interfaces --conf-file=无效化?
问题3 :怎么查看dnsmasq最终的运行参数?
最近编辑记录 himarch (2015-06-09 04:12:10)
离线
For options which may only be specified once, the configuration file overrides the command line.
离线
页次: 1