dnsmasq não tem efeito no próprio roteador

0

aqui está o meu resolv.conf

nameserver 127.0.0.1
nameserver isp_provided

Aqui está o meu dnsmasq.conf, que também fará o DHCP:

user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-range=lan,192.168.5.2,192.168.5.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.5.1
dhcp-option=lan,252,"\n"
dhcp-authoritative
read-ethers
conf-dir=/tmp/mydnsmasq.d/,*.conf

No /tmp/mydnsmasq.d , existe um test.conf :

address=/mytest/111.111.111.111

No '/ etc / hosts', há uma linha adicional:

111.111.111.112 mytest2

Em clientes que se conectaram a este roteador, o comando dig pode obter o endereço mytest e mytest2. No entanto, se eu usar o comando nslookup no shell do roteador, ele diz "não pode resolver" para mytest. OK para mytest2. Por que é que? Como posso consertar isso?

    
por Wang 16.11.2017 / 19:22

0 respostas