The "host" tool in bind-tools-9.12 breaks when /etc/resolv.conf contains a nameserver in the form of a link-local IPv6 with interface specifier. I.e. add something something like the following to your resolv.conf: nameserver fe80::xxxx:yyyy:aaaa:bbbb%eth0 and the "host" tool will always complain: $ host www.gentoo.org host: parse of /etc/resolv.conf failed The issue has already been reported and solved upstream. Please check: https://gitlab.isc.org/isc-projects/bind9/issues/187 However, it seems to be marked for released in 9.13, which leaves gentoo with a broken stable bind-tools package. How about backporting the fix and crating a _p3 package in portage?
Created attachment 563724 [details, diff] patch to fix scoped nameserver entries Placing this file in /etc/portage/patches/net-dns/bind-tools/ resolved the issue for me.
Comment on attachment 563724 [details, diff] patch to fix scoped nameserver entries Note: This patch fails to apply to the version mentioned in the Summary.
I have not tried patching current version (9.12.2) but maybe it is easier to upgrade to >= v9.13.4 ? 9.13.4 is the first BIND version that already contains required fix, please see https://gitlab.isc.org/isc-projects/bind9/commit/76d49c05
fixed version is in the tree.