[PATCH v3] resolv.conf: implement ipv4+ipv6 flags (bug 30544)

Petr Menšík pemensik@redhat.com
Mon Nov 25 18:08:16 GMT 2024


Add separate flags to mark support of address family. Its intention is
to react dynamically to changing network conditions. If the host has
IPv4 connectivity only, it would set ipv4 option. If it has also IPv6
connectivity, it would set ipv6 option. If it connects IPv6-only
network, then it set ipv6 only.

For backward compatibility it will keep old behaviour when both ipv4 and
ipv6 flags are missing. In this case it behaves the same way as if both
were present.

This is quite useful when default AF_UNSPEC is used in hints, but the
host is on network with just single AF used.

Unlike no-aaaa option it would change just AF_UNSPEC behaviour, ie.
getent ahosts example.com. getent ahostsv4 and getent ahostsv6 would
remain unmodified.

Signed-off-by: Petr Menšík <pemensik@redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-resolv.conf-implement-ipv4-ipv6-flags-bug-30544.patch
Type: text/x-patch
Size: 6525 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20241125/57f62d38/attachment.bin>


More information about the Libc-alpha mailing list