Bug 14799 - RES_OPTIONS cannot disable options enabled in /etc/resolv.conf
Summary: RES_OPTIONS cannot disable options enabled in /etc/resolv.conf
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: network (show other bugs)
Version: 2.16
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 15:07 UTC by simohe
Modified: 2017-07-03 11:43 UTC (History)
2 users (show)

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 simohe 2012-11-02 15:07:37 UTC
The only option existing opositive and negative is [no-]ip6-dotint. Other options can not be disabled on the command line when they are set in /etc/resolv.conf.

example:
 when options inet6 is set in /etc/resolv.conf I can not disable it by calling
 RES_OPTIONS=no-inet6 commandNotSupportingInet6

please add the opposite of the following options:
 inet6
 ip6-bytestring
 rotate
 no-check-names
 edns0
 single-request-reopen
 single-request
 no_tld_query
 no-tld-query
 use-vc
and maybe also for
 debug


Checked in res_init.c in version of checkin ad8ac1bd6a3db5becaf1dc20394f6e682d7828cc
Comment 1 Nils Toedtmann 2014-10-07 09:38:25 UTC
+1 for "no-inet6"

Most linux distributions have RES_USE_INET6 set at compile time, and there seems to be no way to disable it at runtime. 

The sysadmin should be given an option to disable AAAA lookups.
Comment 2 Florian Weimer 2017-07-03 11:43:21 UTC
(In reply to Nils Toedtmann from comment #1)
> +1 for "no-inet6"
> 
> Most linux distributions have RES_USE_INET6 set at compile time, and there
> seems to be no way to disable it at runtime. 
> 
> The sysadmin should be given an option to disable AAAA lookups.

RES_USE_INET6 and the “inet6” option are not related to this.  Instead, they change the type of addresses produced by gethostname.  Many applications are incompatible with this.  See bug 19582.