Commit Graph

42 Commits

Author SHA1 Message Date
世界
d2fa21d07b Deprecate Socksaddr.IsFqdn: do not reject potentially valid domain names 2026-03-16 09:37:59 +08:00
世界
044eb728cb Fix legacy DNS config 2026-01-17 05:44:29 +08:00
世界
48f84b31d6 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
世界
378e39f70c Update golangci-lint to v2 2025-08-13 23:37:40 +08:00
世界
534cccce91 Fix DNS upgrade 2025-07-18 21:46:03 +08:00
世界
7a1eee78df Add service component type 2025-07-08 13:14:41 +08:00
世界
fb622ccbdf Explicitly reject detour to empty direct outbounds 2025-07-08 13:12:28 +08:00
世界
7073f2a272 option: Fix marshal legacy DNS options 2025-07-08 13:12:26 +08:00
k9982874
0c523980ff Fix hosts DNS server 2025-07-08 13:12:24 +08:00
世界
b97947e8ac Move predefined DNS server to rule action 2025-07-08 13:12:23 +08:00
TargetLocked
456fbecf16 Fix parsing legacy DNS options 2025-07-08 13:12:21 +08:00
世界
988ac62a1b refactor: Outbound domain resolver 2025-07-08 13:12:14 +08:00
世界
3016338e34 refactor: DNS 2025-07-08 13:12:14 +08:00
世界
effcf39469 Add dns.cache_capacity 2025-01-13 15:14:30 +08:00
世界
ce69e620e9 Migrate bad options to library 2025-01-13 15:14:29 +08:00
世界
da9e22b4e6 Add custom prefix support in EDNS0 client subnet options 2024-05-21 15:12:05 +08:00
世界
f24a2aed7d Add support for client-subnet DNS options 2024-05-21 15:12:03 +08:00
世界
3b161ab30c Fix netip.Prefix usage 2023-10-30 12:41:22 +08:00
世界
6f1b258501 Improve DNS caching 2023-06-07 20:56:55 +08:00
世界
9bca5a517f Add fakeip support 2023-06-07 20:31:26 +08:00
世界
aa94cfb876 Refactor rules 2023-06-07 20:28:21 +08:00
世界
52b776b561 Add dns reverse mapping 2023-06-07 20:19:46 +08:00
世界
687b4509df Add query_type DNS rule item 2023-02-08 16:18:40 +08:00
世界
5297273937 Add clash mode support 2022-09-10 14:15:11 +08:00
dyhkwong
374743d022 Add process_path rule item (#51)
* process matching supports full path
* Remove strings.ToLower
2022-08-30 10:44:40 +08:00
世界
ac0ead1473 Add strategy setting for each dns server 2022-08-22 12:01:50 +08:00
世界
f51128f772 Add ip_version rule item 2022-08-16 23:47:14 +08:00
世界
0347a7c038 Remove go-json 2022-07-26 13:53:25 +08:00
世界
cc78f0347d Improve config struct 2022-07-25 16:18:11 +08:00
世界
67edc163cb Add with_std_json build tag 2022-07-24 21:22:19 +08:00
世界
7d340e7ef9 Add source_port_range/port_range rule item 2022-07-24 16:21:35 +08:00
世界
af19ba6119 Add disable_cache option to dns rule 2022-07-24 16:21:31 +08:00
世界
ce4b7231e2 Add invert rule item 2022-07-24 16:21:31 +08:00
世界
5f6f33c464 Add process_name/package_name/user/user_id rule item 2022-07-23 21:28:13 +08:00
世界
d1e83882e5 Add user rule item 2022-07-17 17:38:11 +08:00
世界
dc127e2994 Migrate components to library 2022-07-11 18:44:59 +08:00
世界
3c1190e2c3 Make dns.strategy take effect in dns exchange 2022-07-11 13:21:17 +08:00
世界
211d97ff8a Declare required fields in the documentation 2022-07-09 09:28:54 +08:00
世界
f448b6b977 Update gci format 2022-07-08 23:03:57 +08:00
世界
538a1f5909 Add resolver for outbound dialer 2022-07-07 21:47:21 +08:00
世界
ecac383477 Add disableCache/disableExpire option for dns client 2022-07-06 23:43:20 +08:00
世界
8a761d7e3b Add dns client 2022-07-06 23:14:19 +08:00