pdns
pdns copied to clipboard
Error handling in "pdnsutil check zone"
- Program: Authoritative
- Issue type: Bug report
Short description
pdnsutil check zone should check only given zone
Environment
- Operating system: FreeBSD 11.1-RELEASE
- Software version: PowerDNS Auth 4.1.0 + DNSSEC
Steps to reproduce
- Generate any random 256 char name: cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 256
- Update zone file: echo "0e8f032ef4efae5740248de6c69b30c2b15ef98b8647cbb824a64e129e20add35cab929ea20191d69e40eb859f0adf0b49e1b7229dd1a3991981e28d3c0ad74cb6d87d2b5af686196815d5f5868ab9a0590269e890cdc5f4a4d262d1d8b9023c8f0a46206fc138b65c2474f79c0cd9ff4743356a666670d2f355fe79321c3832 IN A IPv4" >> krion.cc.zone
- Error message "Error: name too long to append" appears in /var/log/messages
- dns:/usr/local/etc/pdns/zones # pdnsutil check-zone krion.cc Jan 05 20:49:41 Caught an exception instantiating a backend, cleaning up Error: name too long to append dns:/usr/local/etc/pdns/zones # pdnsutil check-zone bsdop.net Jan 05 20:49:43 Caught an exception instantiating a backend, cleaning up Error: name too long to append
pdnsutil checks bsdop.net and produces error for krion.cc zone.
Expected behaviour
"pdnsutil check zone" checks given zone only