Bug 19697 - /etc/gai.conf option to configure AF_UNSPEC lookups
Summary: /etc/gai.conf option to configure AF_UNSPEC lookups
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: network (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-20 14:22 UTC by Florian Weimer
Modified: 2016-02-20 14:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Weimer 2016-02-20 14:22:27 UTC
Systems without IPv6 connectivity may still run software which uses AF_UNSPEC lookups.  Such systems may want to skip the AAAA lookup in getaddrinfo.

Similarly, IPv6-only systems might want to avoid the A lookups.

Therefore, configuration options like “af_unspec both“ (the default), “af_unspec af_inet” and “af_unspec af_inet6” make a lot of sense to me.