OpenBSD CVS

CVS log for src/sbin/unwind/resolver.h


[BACK] Up to [local] / src / sbin / unwind

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 18 09:18:27 2019 UTC (4 years, 5 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.16: +12 -1 lines
Diff to previous 1.16 (colored)

Implement unwindctl status memory to show chache memory usage.
testing by otto & pamela as part of a larger diff

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 8 09:47:50 2019 UTC (4 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

Turn opportunistic DoT into their own strategies.
This is beneficial since we prefer strategies according to their
performance.
Previously name servers were upgraded to opportunistic DoT if it was
available even if the round trip times went through the roof and there
was no way to got back to plain udp/53 DNS.
To make up a bit of space in the unwindctl status output, name servers
learned via DHCP or SLAAC are printed in a new subcommand.
The status output will be further improved shortly.
Input & OK otto

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 2 06:26:52 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Add an "all" mode for status and a much more compact and readable histogram
display; remove the why bogus status message; ok florian@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 28 10:40:29 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

show median RTT in unwindctl status

Revision 1.13 / (download) - annotate - [select for diffs], Thu Nov 28 10:02:44 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Track all elements of a forwarder configuration individually:
IP address, port and authentication name.
This makes print_config less awkward and fixes a bug were an
alternative port number was not printed.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 27 17:12:31 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

Instead of only considering if a resolving strategy is dead, works or
validates, measure how well it is doing.

We keep track of the round trip median time of past queries and sort
strategies according to this in addition to the more basic qualities
of does it resolve and does it validate. If a query is not answered
within the median time the next best strategy gets a chance.  The most
prefered strategy (either from the config file or defaults) gets an
additional head start of 200ms.

A response of SERVFAIL also advances to the next best strategy. This
is helpful when the picked strategy can only see parts of the internet
but another strategy can reach more.

This alone gets us past quite a few captive portals already.
Additionally we doubt NXDOMAIN from anything but the stub resolver for
the first 5 minutes after a network change. This is probably as good
as the http check we had previously but more tests are needed.

This was inspired by RFC 8305, "Happy Eyeballs".

OK otto

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 27 17:09:12 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

Nuke http captive portal detection; something better is coming.
OK otto

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 25 18:10:42 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

simplify histogram code and cut off at < limit, as the histogram display in
unwindctl suggests; ok florian@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 21 05:01:22 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

    Track on which interface nameservers have been learned.
    prodding deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 19 14:49:36 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (colored)

Print learned forwarders in unwindctl.
Someone please make this pretty.
Tested by deraadt as part of a larger diff.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 3 09:46:11 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

*** empty log message ***

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 2 07:47:23 2019 UTC (5 years, 2 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.5: +1 -16 lines
Diff to previous 1.5 (colored)

Add a config option to specify the preference of name servers.
Unfortunately the nameserver types enums needed to be renamed
to not collide with yacc tokens.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 2 07:45:11 2019 UTC (5 years, 2 months ago) by florian
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Introduce array of resolvers in preparation of custom ordering

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 17 14:49:15 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.3: +8 -8 lines
Diff to previous 1.3 (colored)

 s/unwind_/uw_/ to save screen real estate; fix style(9) issues while here

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 3 12:02:30 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.2: +5 -3 lines
Diff to previous 1.2 (colored)

Captive portal detection for unwind(8).

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 27 12:40:54 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored)

Implement DNS over TLS (DoT).

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 23 13:11:00 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN

Import unwind(8).

unwind(8) is a hybrid validating stub & recursive resolver.

It actively observes the local net to decide how to best resolve
names. It can chose to recurse on it's own or talk to dhcp
provided forwardes or statically defined forwarders in the
config file.

The intention is to be able to run it on localhost on every machine.

"toss it in man" deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.