Is -V throwing the segfault as well?
f87b47a44e88:/# /usr/lib/nagios/plugins/check_dns -V
check_dns v (nagios-plugins 2.4.5)
The version of the installed APK would be interesting, too:
f87b47a44e88:/# apk info nagios-plugins-dns
nagios-plugins-dns-2.4.5-r2 description:
Nagios plugin check_dns
nagios-plugins-dns-2.4.5-r2 webpage:
https://nagios-plugins.org/
nagios-plugins-dns-2.4.5-r2 installed size:
80 KiB