Open rumato163 opened 1 year ago
pdnsutil check-zone
does not work at all for geoipbackend. It would be nice if pdnsutil told you this, though!
I updated the issue title.
Hi Thanks a lot for clarification about pdnsutil. But in general I've another one problem with geoip backend regarding to XFR. ((( It fails every time than I'm trying to get zone list from my geoip backend with following log messages:
Nov 30 11:50:08 pdns-geo[28718]: AXFR of domain 'domain.com' initiated by 127.0.0.1:38593
Nov 30 11:50:08 pdns-geo[28718]: AXFR of domain 'domain.com' allowed: client IP 127.0.0.1:38593 is in allow-axfr-ips
Nov 30 11:50:08 pdns-geo[28718]: Backend signals error condition
I've used the exact same config for XFR tests.
Nov 30 11:50:08 pdns-geo[28718]: Backend signals error condition
this is the exact thing pdnsutil is not noticing. The geoipbackend does not support listing zone contents, as the contents depend on who is asking. XFR is therefore not supported from geoipbackend.
Got it. Thank you once again!
Do you need me to close curent issue report or you will close it righ after some code changes (to fix error text or smf like that)?
I changed the title to remind us that pdnsutil should give an error, so please leave it open. Thanks!
Short description
Getting an error "[Error] No NS record at zone apex in zone" while trying to check any zone via pdnsutil
Environment
Steps to reproduce
default-ttl=300 distributor-threads=5 receiver-threads=5
local-address=... local-address-nonexist-fail=no local-port=53 reuseport=yes
log-dns-details=yes log-dns-queries=no log-timestamp=yes loglevel=12
master=yes allow-axfr-ips=...
launch=geoip geoip-database-files=mmdb:/etc/powerdns/geo/GeoIP2-City.mmdb geoip-zones-file=/etc/powerdns/geo/geo.yml
cat /etc/powerdns/geo/geo.yml domains:
Expected behaviour
Opened MMDB database /etc/powerdns/geo/GeoIP2-City.mmdb(type: GeoIP2-City version: 2.0) Checked 2 records of 'domain.com', 0 errors, 0 warnings.
Actual behaviour
Opened MMDB database /etc/powerdns/geo/GeoIP2-City.mmdb(type: GeoIP2-City version: 2.0) [Error] No NS record at zone apex in zone 'domain.com' Checked 0 records of 'domain.com', 1 errors, 0 warnings.
Other information
I was trying to update pdns up to 4.6.2. Still the same