Commit Graph
98 Commits
Author SHA1 Message Date
Shtorm c0bfc731ec Merge tag 'v1.14.0' 2026-09-04 01:08:30 +03:00
世界 ba4146ea31 Reformat code 2026-08-30 17:41:46 +08:00
世界 6e09f2892a Add JSON schema support 2026-08-30 17:41:44 +08:00
世界 caf940c805 dns: Add mDNS server 2026-08-30 17:41:40 +08:00
世界 f8a623e0c6 dns: Add neighbor-based hostname resolution to local server 2026-08-30 17:41:40 +08:00
世界 87c2b89120 dns: Add timeout configuration 2026-08-30 17:41:40 +08:00
世界 c322ad5d33 Add optimistic DNS cache 2026-08-30 17:41:39 +08:00
nekohasekai cd77e78f0a Add evaluate DNS rule action and related rule items 2026-08-30 17:41:39 +08:00
Shtorm cb664d1a4b Fix DNS Fallback 2026-08-09 15:01:36 +03:00
Shtorm 34b09a8ef3 Add new admin panel, failover, dns fallback, providers, limiters. Update XHTTP 2026-05-11 00:59:35 +03:00
Shtorm 7c3a19c2fe Update sing-box core 2026-04-26 21:11:31 +03:00
世界 d2fa21d07b Deprecate Socksaddr.IsFqdn: do not reject potentially valid domain names 2026-03-16 09:37:59 +08:00
世界 6da6aff8b4 Deprecate Socksaddr.IsFqdn: do not reject potentially valid domain names 2026-03-16 09:37:59 +08:00
Shtorm 494fa5a9da Update sing-box core 2026-03-10 04:25:01 +03:00
世界 044eb728cb Fix legacy DNS config 2026-01-17 05:44:29 +08:00
世界 99466af6b7 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
世界 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
Shtorm 650e57feff Resolve conflicts 2025-09-14 23:44:29 +03:00
Shtorm b2c1eb1e48 Resolve conflicts 2025-08-15 12:56:52 +03:00
世界 378e39f70c Update golangci-lint to v2 2025-08-13 23:37:40 +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
世界 534cccce91 Fix DNS upgrade 2025-07-18 21:46:03 +08:00
世界 873ab4b085 Add service component type 2025-07-08 13:14:41 +08:00
世界 7a1eee78df 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
世界 fb622ccbdf 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
世界 7073f2a272 option: Fix marshal legacy DNS options 2025-07-08 13:12:26 +08:00
k9982874and世界 fe2239266a Fix hosts DNS server 2025-07-08 13:12:24 +08:00
k9982874and世界 0c523980ff 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
世界 b97947e8ac Move predefined DNS server to rule action 2025-07-08 13:12:23 +08:00
TargetLockedand世界 9a6de83dc5 Fix parsing legacy DNS options 2025-07-08 13:12:21 +08:00
TargetLockedand世界 456fbecf16 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
世界 988ac62a1b refactor: Outbound domain resolver 2025-07-08 13:12:14 +08:00
世界 f75ade1991 refactor: DNS 2025-07-08 13:12:14 +08:00
世界 3016338e34 refactor: DNS 2025-07-08 13:12:14 +08:00
世界 dc82247c13 Add dns.cache_capacity 2025-01-13 15:14:30 +08:00
世界 effcf39469 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
世界 ce69e620e9 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
世界 da9e22b4e6 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
世界 f24a2aed7d 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
世界 3b161ab30c Fix netip.Prefix usage 2023-10-30 12:41:22 +08:00