tailscale/net/dns
Adrian Dewhurst 8bdf878832 net/dns/resolver: use forwarded dns txid directly
Previously, we hashed the question and combined it with the original
txid which was useful when concurrent queries were multiplexed on a
single local source port. We encountered some situations where the DNS
server canonicalizes the question in the response (uppercase converted
to lowercase in this case), which resulted in responses that we couldn't
match to the original request due to hash mismatches. This includes a
new test to cover that situation.

Fixes #2597

Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
2021-08-06 14:56:11 -04:00
..
resolver net/dns/resolver: use forwarded dns txid directly 2021-08-06 14:56:11 -04:00
config.go net/dns{,/resolver}: quiet DNS output logging 2021-07-19 22:24:43 -07:00
debian_resolvconf.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
direct_test.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
direct.go net/dns: set WSL /etc/resolv.conf 2021-06-28 14:18:15 -07:00
flush_windows.go Move DNS flush logic to net/dns. 2021-03-25 17:40:52 -07:00
ini_test.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
ini.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
manager_default.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
manager_freebsd.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
manager_linux.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
manager_openbsd.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
manager_test.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 2021-06-23 16:04:10 -07:00
manager_windows.go net/dns: correct log message. 2021-08-03 13:58:29 -07:00
manager.go net/dns{,/resolver}: quiet DNS output logging 2021-07-19 22:24:43 -07:00
nm.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
openresolv.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
osconfig.go net/dns: make debian_resolvconf correctly clear DNS configs. 2021-04-20 15:51:14 -07:00
registry_windows.go wgengine/router/dns: move to net/dns. 2021-03-25 16:25:30 -07:00
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 2021-04-10 23:01:11 -07:00
resolvconf.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
resolved.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
wsl_windows.go net/dns: do not run wsl.exe as LocalSystem 2021-06-30 10:11:33 -07:00