Hello,

I am using dnsmasq in various situations, thanks a lot for this very useful work.

I noticed that I am not able to use address=/#/ip since v2.86 (it still worked with v2.85). I am now getting an error.

dnsmasq: config error is REFUSED (EDE: not ready)

Here is the error with v2.86 on MacOS 10.12.6 (dnsmasq and dig run in separate shells):

$ sudo ./bin/dnsmasq --no-daemon --quiet-dhcp --quiet-dhcp6 --quiet-ra  
--conf-file=./dnsmasq_catchall2.conf  --log-debug
Password:
dnsmasq: started, version 2.86 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN 
DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset auth no-cryptohash no-DNSSEC 
loop-detect no-inotify dumpfile
dnsmasq: warning: no upstream servers configured
dnsmasq: read hosts2 - 11 addresses
dnsmasq: query[A] a.com from 127.0.0.1
dnsmasq: config error is REFUSED (EDE: not ready)

$ dig @127.0.0.1 a.com

; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 a.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 44046
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;a.com.                         IN      A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Sep 15 01:27:17 2021
;; MSG SIZE  rcvd: 23

I still worked with v2.85

$ sudo ./bin/dnsmasq --no-daemon --quiet-dhcp --quiet-dhcp6 --quiet-ra  
--conf-file=./dnsmasq_catchall2.conf  --log-debug
dnsmasq: started, version 2.85 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN 
DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset auth no-cryptohash no-DNSSEC 
loop-detect no-inotify dumpfile
dnsmasq: read hosts2 - 11 addresses
dnsmasq: query[A] a.com from 127.0.0.1
dnsmasq: config a.com is 10.0.0.2

$ dig @127.0.0.1 a.com

; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 a.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11515
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;a.com.                         IN      A

;; ANSWER SECTION:
a.com.                  0       IN      A       10.0.0.2

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Sep 15 01:28:56 2021
;; MSG SIZE  rcvd: 39

dnsmasq_catchall2.conf

# listen-address=10.0.0.2 > # Temporary test
listen-address=127.0.0.1

# domain=my.domain
addn-hosts=hosts2

# generic catch-all
address=/#/10.0.0.2

# this allows to resolve unqualified names
expand-hosts
domain=my.domain


no-hosts
no-resolv
bogus-priv
bind-interfaces

# For debugging purposes, log each DNS query as it passes through
# dnsmasq.
log-queries

hosts2

10.0.0.1                my.domain
10.0.0.1                www.my.domain
10.0.0.1                t.my.domain
10.0.0.1                t
10.0.0.1                t1.my.domain
10.0.0.1                t1
10.0.0.2                t2.my.domain
10.0.0.2                t2


10.0.0.2                localdhcp
10.0.0.2                localdns
10.0.0.2                localserver

Regards,

Jean-Philippe Lambert

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to