Commit f36b5de
committed
fix(iroh-dns): drop link-local and unspecified system nameservers
## Description
Android tethered through an iPhone publishes link-local nameservers
in `LinkProperties.getDnsServers()`. Without a scope ID those are not
routable from a connected UDP socket and every query times out before
falling back.
Generalize the existing `WINDOWS_BAD_SITE_LOCAL_DNS_SERVERS` filter
into `is_usable_nameserver`, which also drops link-local IPv4
(`169.254.0.0/16`), link-local IPv6 (`fe80::/10`), and the unspecified
addresses. The filter applies on every platform.
## Breaking Changes
None.
## Notes & open questions
This is a reachability filter, not a trust boundary. Authenticated DNS
still requires DNS-over-HTTPS or DNSSEC on top.
## Change checklist
- [x] Self-review.
- [x] Tests if relevant.
- [x] All breaking changes documented.1 parent 70ea715 commit f36b5de
1 file changed
Lines changed: 66 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
792 | 807 | | |
793 | 808 | | |
794 | 809 | | |
| |||
862 | 877 | | |
863 | 878 | | |
864 | 879 | | |
| 880 | + | |
865 | 881 | | |
866 | 882 | | |
867 | 883 | | |
868 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
869 | 934 | | |
870 | 935 | | |
871 | 936 | | |
| |||
0 commit comments