V
V
Viktor Yanyshev2019-01-24 16:40:55
linux
Viktor Yanyshev, 2019-01-24 16:40:55

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:

/etc/dnsmasq.d/local.conf
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

/etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no

/etc/dhcp/dhclient.conf
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;


Then rebooted. I check ping al.local , the answer is:
ping: al.local: Неизвестное имя или служба
The dnsmasq logs have the following:
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

Why can't it work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question