Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675154 - net-dns/bind-tools-9.12.2_p2-r1: link-local IPv6 DNS server issue - host: parse of /etc/resolv.conf failed
Summary: net-dns/bind-tools-9.12.2_p2-r1: link-local IPv6 DNS server issue - host: par...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords: PATCH
Depends on: 682416
Blocks:
  Show dependency tree
 
Reported: 2019-01-11 03:47 UTC by Antonio Quartulli
Modified: 2019-08-05 11:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix scoped nameserver entries (ipv6_link_local.patch,4.83 KB, patch)
2019-02-04 18:13 UTC, Jacob Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.