On Thu, Apr 23 2020, Jason McIntyre <j...@kerhand.co.uk> wrote: > On Thu, Apr 23, 2020 at 05:17:08PM +0200, Solene Rapenne wrote: >> Is there a reason to keep this part in resolv.conf(5) about an option >> doing nothing? >> >> > options inet6 >> > Enables support for IPv6-only applications, by setting RES_USE_INET6 >> > in _res.options (see res_init(3)). On OpenBSD this option does >> > nothing. >> >> If we can remove it, here is the diff. >> > > hi. > > i guess if you did this, you'd need to look at res_init.3 too.
"options inet6" in resolv.conf(5) does bothing, it doesn't "set RES_USE_INET6 in _res.options". I think we can just delete any mention of "options inet6" in resolv.conf(5). RES_USE_INET6 as documented in res_init(3) should be investigated some more. It actually does *something* in the current code, but it doesn't enable the IPv4-mapped IPv6 addresses which we don't support. Maybe this option should just be deleted (probably safer to wait after 6.7 is released). People should use getaddrinfo(3) instead. > jmc > >> Index: resolv.conf.5 >> =================================================================== >> RCS file: /home/cvs/src/share/man/man5/resolv.conf.5,v >> retrieving revision 1.59 >> diff -u -p -r1.59 resolv.conf.5 >> --- resolv.conf.5 24 Jan 2020 06:16:47 -0000 1.59 >> +++ resolv.conf.5 23 Apr 2020 15:09:42 -0000 >> @@ -258,13 +258,6 @@ particularly if there is a reduced MTU, >> as is often the case with >> .Xr pppoe 4 >> or with tunnels. >> -.It Cm inet6 >> -Enables support for IPv6-only applications, by setting RES_USE_INET6 in >> -_res.options (see >> -.Xr res_init 3 ) . >> -On >> -.Ox >> -this option does nothing. >> .It Cm insecure1 >> Do not require IP source address on the reply packet to be equal to the >> server's address. >> > -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE