Answer the question
In order to leave comments, you need to log in
Why is localzone not working in dnsmasq?
I want all domain names in the *.local zone to come off on my machine (Linux Mint 19). I found several manuals, based on them I made dnsmasq settings:
listen-address=127.0.0.1 # принимаем запросы на локальном адресе
interface=lo # слушать только интерфейс
domain-needed # никогда не пересылать адреса без доменной части
bogus-priv # никогда не пересылать адреса из немаршрутизируемого пространства
strict-order # пересылать запросы, с первого и по порядку
no-resolv # не использовать /etc/resolv.conf
server=77.88.8.8 # адреса серверов провайдера
server=77.88.8.1
address=/local/127.0.0.1 # адрес и имя нашего компьютера
log-queries
log-facility=/var/log/dnsmasq-queries.log
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
prepend domain-name-servers 127.0.0.1;
timeout 300;
ping: al.local: Неизвестное имя или служба
Jan 24 16:39:28 dnsmasq[7798]: query[A] al.local from 127.0.0.1
Jan 24 16:39:29 dnsmasq[7798]: query[A] al.local from 127.0.0.1
Jan 24 16:39:31 dnsmasq[7798]: query[A] al.local from 127.0.0.1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question