Commit Graph

42 Commits

Author SHA1 Message Date
世界
6da6aff8b4 Deprecate Socksaddr.IsFqdn: do not reject potentially valid domain names 2026-03-16 09:37:59 +08:00
世界
99466af6b7 Fix legacy DNS config 2026-01-17 05:44:29 +08:00
世界
ce778e569b Improve local DNS server on darwin
We mistakenly believed that `libresolv`'s `search` function worked correctly in NetworkExtension, but it seems only `getaddrinfo` does.

This commit changes the behavior of the `local` DNS server in NetworkExtension to prefer DHCP, falling back to `getaddrinfo` if DHCP servers are unavailable.

It's worth noting that `prefer_go` does not disable DHCP since it respects Dial Fields, but `getaddrinfo` does the opposite. The new behavior only applies to NetworkExtension, not to all scenarios (primarily command-line binaries) as it did previously.

In addition, this commit also improves the DHCP DNS server to use the same robust query logic as `local`.
2026-01-17 05:44:28 +08:00
世界
8d5f1ad310 Update golangci-lint to v2 2025-08-13 23:37:40 +08:00
世界
d5a71667d0 Fix DNS upgrade 2025-07-18 21:46:03 +08:00
世界
873ab4b085 Add service component type 2025-07-08 13:14:41 +08:00
世界
96f078e252 Explicitly reject detour to empty direct outbounds 2025-07-08 13:12:28 +08:00
世界
e41fdfe58a option: Fix marshal legacy DNS options 2025-07-08 13:12:26 +08:00
k9982874
fe2239266a Fix hosts DNS server 2025-07-08 13:12:24 +08:00
世界
6cae3e54d1 Move predefined DNS server to rule action 2025-07-08 13:12:23 +08:00
TargetLocked
9a6de83dc5 Fix parsing legacy DNS options 2025-07-08 13:12:21 +08:00
世界
2afbe96ea0 refactor: Outbound domain resolver 2025-07-08 13:12:14 +08:00
世界
f75ade1991 refactor: DNS 2025-07-08 13:12:14 +08:00
世界
dc82247c13 Add dns.cache_capacity 2025-01-13 15:14:30 +08:00
世界
078de6c0fe Migrate bad options to library 2025-01-13 15:14:29 +08:00
世界
2be319ea85 Add custom prefix support in EDNS0 client subnet options 2024-05-21 15:12:05 +08:00
世界
ec7120b762 Add support for client-subnet DNS options 2024-05-21 15:12:03 +08:00
世界
76efe2f533 Fix netip.Prefix usage 2023-10-30 12:41:22 +08:00
世界
d87d142798 Improve DNS caching 2023-06-07 20:56:55 +08:00
世界
b15d6969ff Add fakeip support 2023-06-07 20:31:26 +08:00
世界
3e6afcdcbf Refactor rules 2023-06-07 20:28:21 +08:00
世界
2500478f98 Add dns reverse mapping 2023-06-07 20:19:46 +08:00
世界
33b86ac699 Add query_type DNS rule item 2023-02-08 16:18:40 +08:00
世界
a62774c51c Add clash mode support 2022-09-10 14:15:11 +08:00
dyhkwong
664c6b68b6 Add process_path rule item (#51)
* process matching supports full path
* Remove strings.ToLower
2022-08-30 10:44:40 +08:00
世界
6109040c4c Add strategy setting for each dns server 2022-08-22 12:01:50 +08:00
世界
90328934f3 Add ip_version rule item 2022-08-16 23:47:14 +08:00
世界
3a7a4bab12 Remove go-json 2022-07-26 13:53:25 +08:00
世界
18bdfbf187 Improve config struct 2022-07-25 16:18:11 +08:00
世界
fd8359df77 Add with_std_json build tag 2022-07-24 21:22:19 +08:00
世界
2bea4818b5 Add source_port_range/port_range rule item 2022-07-24 16:21:35 +08:00
世界
68e8c59225 Add disable_cache option to dns rule 2022-07-24 16:21:31 +08:00
世界
d0f1d7f3dc Add invert rule item 2022-07-24 16:21:31 +08:00
世界
783ff628db Add process_name/package_name/user/user_id rule item 2022-07-23 21:28:13 +08:00
世界
02ef795581 Add user rule item 2022-07-17 17:38:11 +08:00
世界
3d16df288c Migrate components to library 2022-07-11 18:44:59 +08:00
世界
f548511d7e Make dns.strategy take effect in dns exchange 2022-07-11 13:21:17 +08:00
世界
a41127179d Declare required fields in the documentation 2022-07-09 09:28:54 +08:00
世界
2cc746aafe Update gci format 2022-07-08 23:03:57 +08:00
世界
f65f3f1ba0 Add resolver for outbound dialer 2022-07-07 21:47:21 +08:00
世界
d921797e3c Add disableCache/disableExpire option for dns client 2022-07-06 23:43:20 +08:00
世界
001dc5f62c Add dns client 2022-07-06 23:14:19 +08:00