This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11558] No way to set some options in /etc/resolv.conf


------- Additional Comments From robgnubug at hagopian dot net  2010-04-30 16:59 -------
I don't have any evidence either way, but from past experiences I would suggest
that it's just as likely that there is no good reason why it is that way (e.g.,
no one thought of it/it hasn't come up before). Even though I will likely go
that route, I tend to disagree with your assessment that a preloaded object is
'eas[y]' and the fact that other settings can be changed via the options line in
/etc/resolv.conf indicates that such an object is not the solution that has been
used to date (ip6-bytestring "sets   RES_USE_BSTRING   in  _res.options";
ip6-dotint/no-ip6-dotint "Clear/set RES_NOIP6DOTINT  in  _res.options"; edns0
"sets RES_USE_EDNSO in _res.options"). The code does not appear to be completely
ancient as the last option was added around 2007.

Of course, one is always on their own when setting options that aren't defaults.
I'm not suggesting changing the defaults, only providing users [administrators]
a way to do so for at least RES_USEVC which involves adding:

                } else if (!strncmp(cp, "usevc", sizeof("usevc") - 1)) {
                        statp->options |= RES_USEVC;

Around line 541 of glibc/resolv/res_init.c

I would be happy to:
a) supply this as a patch,
b) supply a patch for all current options listed in resolv.h, or
b) if you would accept it, I would be willing to take more generic option
setting code (that takes hex arguments) from the kernel and use it here (more
future-proof but more involved and it's easier for someone to get in trouble
some day)

If you would be willing to integrate any of them.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11558

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]