Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 675154

Summary: net-dns/bind-tools-9.12.2_p2-r1: link-local IPv6 DNS server issue - host: parse of /etc/resolv.conf failed
Product: Gentoo Linux Reporter: Antonio Quartulli <a>
Component: Current packagesAssignee: Christian Ruppert (idl0r) <idl0r>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, jwbraun, zlogene
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.isc.org/isc-projects/bind9/issues/187
https://bugs.gentoo.org/show_bug.cgi?id=679838
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 682416    
Bug Blocks:    
Attachments: patch to fix scoped nameserver entries

Description Antonio Quartulli 2019-01-11 03:47:04 UTC
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?
Comment 1 Jacob Braun 2019-02-04 18:13:31 UTC
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 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-02-16 09:53:01 UTC
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.
Comment 3 Room Cays 2019-05-13 16:52:39 UTC
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
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-08-05 11:30:34 UTC
fixed version is in the tree.