Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns servers proxy address:https://dns.google/dns-query or https://1.1.1.1/dns-query error #1954

Closed
4 of 5 tasks
sosojustdo opened this issue Jul 18, 2024 · 5 comments
Closed
4 of 5 tasks
Labels
no locally reproducible process provided No basic respect for the open source community not following template Necessary information is not provided or is incomplete

Comments

@sosojustdo
Copy link

Operating system

macOS

System version

13.6.1

Installation type

sing-box for macOS Graphical Client

If you are using a graphical client, please provide the version of the client.

1.7.4

Version

No response

Description

macos sing-box DNS servers config:
{
"tag": "dns_proxy",
"address": "https://dns.google/dns-query",
"address_resolver": "dns_local",
"detour": "select"
}

{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"address_resolver": "dns_local",
"detour": "select"
}

Reproduction

Can't visit google.com
image

Logs

No response

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
@wade0317
Copy link

"dns": {
"servers": [
{
"tag": "local_dns",
"address": "https://223.5.5.5/dns-query",
"address_strategy": "ipv4_only",
"strategy": "ipv4_only",
"detour": "direct"
},
{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"strategy": "ipv4_only",
"address_resolver": "dns_resolver",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
},
{
"tag": "fake_dns",
"address": "fakeip"
},
{
"tag": "dns_resolver",
"address": "https://223.5.5.5/dns-query",
"strategy": "ipv4_only",
"detour": "direct"
}
],
"rules": [
{
"outbound": "any",
"server": "local_dns"
},
{
"rule_set": "geosite-geolocation-cn",
"server": "local_dns"
},
{
"geosite": [
"cn"
],
"domain_suffix": [
".cn"
],
"server": "local_dns",
"disable_cache": false
},
{
"query_type": [
"A",
"AAAA"
],
"server": "fake_dns"
},
{
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn",
"invert": true
},
{
"rule_set": "geoip-cn"
}
],
"server": "dns_proxy",
"client_subnet": "114.114.114.114/24"
},
{
"geosite": [
"category-ads-all"
],
"server": "block",
"disable_cache": true
}
],
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
},
"independent_cache": true,
"final": "dns_proxy",
"strategy": "ipv4_only",
"disable_cache": false,
"disable_expire": false
},

@wade0317
Copy link

mac os 1.9.3 version SFM works good

@wade0317
Copy link

{
"log": {
"disabled": false,
"level": "info"
},
"dns": {
"servers": [
{
"tag": "local_dns",
"address": "https://223.5.5.5/dns-query",
"address_strategy": "ipv4_only",
"strategy": "ipv4_only",
"detour": "direct"
},
{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"strategy": "ipv4_only",
"address_resolver": "dns_resolver",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
},
{
"tag": "fake_dns",
"address": "fakeip"
},
{
"tag": "dns_resolver",
"address": "https://223.5.5.5/dns-query",
"strategy": "ipv4_only",
"detour": "direct"
}
],
"rules": [
{
"outbound": "any",
"server": "local_dns"
},
{
"rule_set": "geosite-geolocation-cn",
"server": "local_dns"
},
{
"geosite": [
"cn"
],
"domain_suffix": [
".cn"
],
"server": "local_dns",
"disable_cache": false
},
{
"query_type": [
"A",
"AAAA"
],
"server": "fake_dns"
},
{
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn",
"invert": true
},
{
"rule_set": "geoip-cn"
}
],
"server": "dns_proxy",
"client_subnet": "114.114.114.114/24"
},
{
"geosite": [
"category-ads-all"
],
"server": "block",
"disable_cache": true
}
],
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
},
"independent_cache": true,
"final": "dns_proxy",
"strategy": "ipv4_only",
"disable_cache": false,
"disable_expire": false
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"auto_route": true,
"strict_route": true,
"stack": "system",
"mtu": 1500,
"sniff": true,
"inet4_address": [
"172.19.0.1/30"
],
"inet6_address": [
"fdfe:dcba:9876::1/126"
]
}
],
"outbounds": [
{
"type": "vless",
"tag": "my_vless_proxy"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"geoip": {
"path": "geoip.db",
"download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db",
"download_detour": "direct",
"download_detour": "my_vless_proxy"
},
"geosite": {
"path": "geosite.db",
"download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db",
"download_detour": "direct",
"download_detour": "my_vless_proxy"
},
"rule_set": [
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
"download_detour": "my_vless_proxy"
},
{
"type": "remote",
"tag": "geosite-geolocation-!cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
"download_detour": "my_vless_proxy"
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
"download_detour": "my_vless_proxy"
}
],
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geosite": [
"cn",
"private"
],
"geoip": [
"cn",
"private"
],
"domain_suffix": [
".cn"
],
"outbound": "direct"
},
{
"geosite": [
"category-ads-all"
],
"outbound": "block"
}
],
"auto_detect_interface": true,
"final": "my_vless_proxy"
},
"experimental": {
"cache_file": {
"enabled": true,
"store_fakeip": true,
"store_rdrc": true
},
"clash_api": {
"default_mode": "Rule"
}
}
}

@sosojustdo
Copy link
Author

@wade0317
感谢您的分享,首先我将本地sing-box更新到1.9.3,然后我根据您提供的内容重新整理了sing-box客户端配置:
{
"log": {
"disabled": false,
"level": "info"
},
"dns": {
"servers": [
{
"tag": "local_dns",
"address": "https://223.5.5.5/dns-query",
"address_strategy": "ipv4_only",
"strategy": "ipv4_only",
"detour": "direct"
},
{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"strategy": "ipv4_only",
"address_resolver": "dns_resolver",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
},
{
"tag": "fake_dns",
"address": "fakeip"
},
{
"tag": "dns_resolver",
"address": "https://223.5.5.5/dns-query",
"strategy": "ipv4_only",
"detour": "direct"
}
],
"rules": [
{
"outbound": "any",
"server": "local_dns"
},
{
"rule_set": "geosite-geolocation-cn",
"server": "local_dns"
},
{
"geosite": [
"cn"
],
"domain_suffix": [
".cn"
],
"server": "local_dns",
"disable_cache": false
},
{
"query_type": [
"A",
"AAAA"
],
"server": "fake_dns"
},
{
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn",
"invert": true
},
{
"rule_set": "geoip-cn"
}
],
"server": "dns_proxy",
"client_subnet": "114.114.114.114/24"
},
{
"geosite": [
"category-ads-all"
],
"server": "block",
"disable_cache": true
}
],
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18"
},
"independent_cache": true,
"final": "dns_proxy",
"strategy": "ipv4_only",
"disable_cache": false,
"disable_expire": false
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"auto_route": true,
"strict_route": true,
"stack": "system",
"mtu": 1500,
"sniff": true,
"inet4_address": [
"172.19.0.1/30"
],
"inet6_address": [
"fdfe:dcba:9876::1/126"
]
},
{
"type": "socks",
"listen": "127.0.0.1",
"listen_port": 1089,
"sniff": true,
"users": [
{
"username": "admin",
"password": "admin"
}
]
}
],
"outbounds": [
{
"type": "hysteria2",
"tag": "Hysteria2-2302",
"server": "我的vpsip",
"server_port": 443,
"up_mbps": 20,
"down_mbps": 100,
"password": "hysteria2服务端设置的密码",
"tls": {
"enabled": true,
"insecure": true,
"server_name": "bing.com"
}
},
{
"type": "vless",
"tag": "my_vless_proxy"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"geoip": {
"path": "geoip.db",
"download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db",
"download_detour": "my_vless_proxy"
},
"geosite": {
"path": "geosite.db",
"download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db",
"download_detour": "my_vless_proxy"
},
"rule_set": [
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
"download_detour": "my_vless_proxy"
},
{
"type": "remote",
"tag": "geosite-geolocation-!cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
"download_detour": "my_vless_proxy"
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
"download_detour": "my_vless_proxy"
}
],
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geosite": [
"cn",
"private"
],
"geoip": [
"cn",
"private"
],
"domain_suffix": [
".cn"
],
"outbound": "direct"
},
{
"geosite": [
"category-ads-all"
],
"outbound": "block"
}
],
"auto_detect_interface": true,
"final": "my_vless_proxy"
},
"experimental": {
"cache_file": {
"enabled": true,
"store_fakeip": true,
"store_rdrc": true
},
"clash_api": {
"default_mode": "Rule"
}
}
}

我的VPS上hysteria2的配置是:
listen: :443

tls:
cert: /etc/hysteria/server.crt
key: /etc/hysteria/server.key

auth:
type: password
password: hysteria2服务端设置的密码

masquerade:
type: proxy
proxy:
url: https://www.bing.com
rewriteHost: true

log:
level: debug
file: /var/log/hysteria/hysteria.log

sing-box启动报错:
WX20240722-093442@2x

@sosojustdo
Copy link
Author

image

@dyhkwong dyhkwong added not following template Necessary information is not provided or is incomplete no locally reproducible process provided No basic respect for the open source community labels Jul 23, 2024
@dyhkwong dyhkwong closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no locally reproducible process provided No basic respect for the open source community not following template Necessary information is not provided or is incomplete
Projects
None yet
Development

No branches or pull requests

3 participants