Add resolv.conf(5) option to force lookups by TCP: "options tcp"
authordjm <djm@openbsd.org>
Fri, 15 Aug 2008 14:57:19 +0000 (14:57 +0000)
committerdjm <djm@openbsd.org>
Fri, 15 Aug 2008 14:57:19 +0000 (14:57 +0000)
commit4059c2b8467562f29b89007d2dbedaede6166fd4
treefd0d0f905909738020fe8a60511d6d8eafd57652
parenta02dafe8518d49e11cd93c0efb8a4cd9577459c2
Add resolv.conf(5) option to force lookups by TCP: "options tcp"

Also Extend "nameserver" declaration syntax to support port
numbers.  To avoid ambiguity these are only parsed when the address
is enclosed in square brackets, e.g. "nameserver [127.0.0.1]:5353"

Together these changes make forwarding DNS over a SSH tunnel very
easy, but unfortunately some programs in ports/ implement their
own resolvers (e.g. firefox). These will need to be modified to
support these options separately.

fixes jsing@ reyk@
ok deraadt@ millert@ krw@ + "I like it" from lots
lib/libc/net/res_init.c
share/man/man5/resolv.conf.5