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 type 'local' can not work #2578

Open
4 of 5 tasks
woyin opened this issue Feb 11, 2025 · 2 comments
Open
4 of 5 tasks

DNS type 'local' can not work #2578

woyin opened this issue Feb 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@woyin
Copy link

woyin commented Feb 11, 2025

Operating system

macOS

System version

15.3

Installation type

sing-box for macOS Graphical Client

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

SFM Version 1.12.0-alpha.5 (1)

Version

Description

The DNS section is below:

  "dns": {
    "servers": [
      {
        "type": "local",
        "tag": "local"
      },
      {
        "type": "https",
        "tag": "dns_proxy",
        "server": "dns.google",
        "server_port": 443,
        "domain_resolver": "dns_local"
      },
      {
        "type": "predefined",
        "tag": "dns_refused",
        "responses": [
          {
            "rcode": "REFUSED"
          }
        ]
      },
      {
        "type": "fakeip",
        "tag": "dns_fakeip",
        "inet4_range": "198.18.0.0/15"
      },
      {
        "type": "udp",
        "tag": "dns_local",
        "server": "119.29.29.29"
      }
    ],
    "rules": [
      {
        "query_type": [
          "A",
          "AAAA"
        ],
        "rule_set": "geosite-geolocation-!cn",
        "server": "dns_fakeip"
      },
      {
        "query_type": [
          "CNAME"
        ],
        "rule_set": "geosite-geolocation-!cn",
        "server": "dns_proxy"
      },
      {
        "query_type": [
          "A",
          "AAAA",
          "CNAME"
        ],
        "invert": true,
        "server": "dns_refused",
        "disable_cache": true
      }
    ],
    "final": "local",
    "strategy": "prefer_ipv4"
  }

and the DNS can't work properly.
But if I change the final to dns_local, everything is OK.

Reproduction

Use the DNS section above and you'll find you are offline.

Logs

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.
@ggttam
Copy link

ggttam commented Feb 11, 2025

  • The old legacy local server only handles IP requests; the new one handles all types of requests and supports concurrent for IP requests.

1.12用这个"type": "dhcp"

@woyin
Copy link
Author

woyin commented Feb 12, 2025

  • The old legacy local server only handles IP requests; the new one handles all types of requests and supports concurrent for IP requests.

1.12用这个"type": "dhcp"

I've tried it and set it to dns.final and route.default_domain_resolver, but in macOS I can't view the internet and in iOS I got an error message as below.

Image

@nekohasekai nekohasekai added the bug Something isn't working label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants