Mailing List Archive

DNSmasq: to IPv6 or not to IPv6?
Hello list,

My LAN server runs net-dns/dnsmasq, which was updated today. When I
restarted it I got a log entry that said it had been compiled with IPv6 - but
the only reference to that under /etc/portage is USE=-dnsmasq in make.conf.

Anyone have an idea? Bugzilla is silent.

$ grep -ri ipv6 /etc/portage
/etc/portage/make.conf: -geoloc -geolocation -gnome -iodbc -ipv6 -kde -ldap -
lirc

$ emerge --info | grep ^USE | grep -i ipv6
$

$ emerge -pv dnsmasq
[...]
[ebuild R ] net-dns/dnsmasq-2.86-r1::gentoo USE="dbus dumpfile inotify
loop nls -auth-dns -conntrack -dhcp -dhcp-tools -dnssec -id -idn -ipv6 -
libidn2 -lua -nettlehash -script (-selinux) -static -tftp"
LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit" 519 KiB

From syslog-ng on VT12:
dnsmasq[12632]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n no-
IDN no-DHCP no-scripts no-TFTP no-conntrack ipset no-auth no-cryptohash no-
DNSSEC no-ID loop-detect inotify dumpfile

--
Regards,
Peter.
Re: DNSmasq: to IPv6 or not to IPv6? [ In reply to ]
On Wednesday, 17 August 2022 13:33:30 BST Peter Humphrey wrote:
> Hello list,
>
> My LAN server runs net-dns/dnsmasq, which was updated today. When I
> restarted it I got a log entry that said it had been compiled with IPv6 -
> but the only reference to that under /etc/portage is USE=-dnsmasq in
> make.conf.

Oops! That should have been USE=-ipv6, of course.

--
Regards,
Peter.
Re: DNSmasq: to IPv6 or not to IPv6? [ In reply to ]
On 8/17/22 05:53, Peter Humphrey wrote:
> On Wednesday, 17 August 2022 13:33:30 BST Peter Humphrey wrote:
>> Hello list,
>>
>> My LAN server runs net-dns/dnsmasq, which was updated today. When I
>> restarted it I got a log entry that said it had been compiled with IPv6 -
>> but the only reference to that under /etc/portage is USE=-dnsmasq in
>> make.conf.
>
> Oops! That should have been USE=-ipv6, of course.
>
It seems upstream removed the ability to disable IPv6 at compile time
several years back:
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=ee8750451b49d27b180517a4e35b636be0fae575.
Ironic that the author included "I'm sure no-one wants or needs
IPv6-free code these days" in the commit message.

I suppose you could file a bug to remove the `ipv6` USE from the dnsmasq
ebuild since it no longer does anything.

cal
Re: DNSmasq: to IPv6 or not to IPv6? [ In reply to ]
On Thursday, 18 August 2022 03:58:43 BST cal wrote:
> On 8/17/22 05:53, Peter Humphrey wrote:
> > On Wednesday, 17 August 2022 13:33:30 BST Peter Humphrey wrote:
> >> Hello list,
> >>
> >> My LAN server runs net-dns/dnsmasq, which was updated today. When I
> >> restarted it I got a log entry that said it had been compiled with IPv6 -
> >> but the only reference to that under /etc/portage is USE=-dnsmasq in
> >> make.conf.
> >
> > Oops! That should have been USE=-ipv6, of course.
>
> It seems upstream removed the ability to disable IPv6 at compile time
> several years back:
> https://thekelleys.org.uk/gitweb/?
p=dnsmasq.git;a=commit;h=ee8750451b49d27b1
> 80517a4e35b636be0fae575. Ironic that the author included "I'm sure no-one
> wants or needs
> IPv6-free code these days" in the commit message.

Interesting. I see that was nearly four years ago, and I've only just noticed.

> I suppose you could file a bug to remove the `ipv6` USE from the dnsmasq
> ebuild since it no longer does anything.

Perhaps. Thanks for finding this, Cal.

--
Regards,
Peter.