dnsmasq 的问题

dnsmasq 的问题

您好,我在使用此命令时遇到问题...

我这样制作了 dnsmasq.conf 文件:

interface=wlan0mon
dhcp-range= 192.168.1.2, 192.168.1.30, 255.255.255.0, 12h
dhcp-option=3, 192.168.1.1
dhcp-option=6, 192.168.1.1
server= 8.8.8.8
log-queries
log-dhcp
listen-address= 127.0.0.1

当我按下命令时

sudo dnsmasq -C dnsmasq.conf -d

我明白了:

dnsmasq: started, version 2.84rc2 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP 
conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
dnsmasq-dhcp: DHCP, IP range 192.168.1.2 -- 192.168.1.30, lease time 12h
dnsmasq: using nameserver 8.8.8.8#53
dnsmasq: no servers found in /etc/resolv.conf, will retry
dnsmasq: read /etc/hosts - 6 addresses

我的 resolv.conf 文件包含以下内容:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "resolvectl status" to see details about the actual nameservers.
    namserver 192.168.1.1
    namserver fe::d635:1dff:fe1e:463f%wlan0
    search homenet.telecomitalia.it 

相关内容