sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

domain_suffix not working?

Open testing765 opened this issue 1 year ago • 2 comments

Operating system

Android

System version

14

Installation type

sing-box for Android Graphical Client

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

1.11.0

Version


Description

{
  "log": {
    "level": "warn"
  },
  "dns": {
    "servers": [
      {
        "address": "https://8.8.8.8/dns-query"
      }
    ]
  },
  "inbounds": [
    {
      "type": "tun",
      "address": "172.19.0.1/30",
      "auto_route": true
    }
  ],
  "outbounds": [
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "shadowsocks",
      "tag": "ss-out",
      ...
    }
  ],
  "route": {
    "rules": [
      {
        "action": "sniff"
      },
      {
        "protocol": "dns",
        "action": "hijack-dns"
      },
      {
        "domain_suffix": "ipinfo.io",
        "package_name": "com.android.chrome",
        "outbound": "ss-out"
      }
    ],
    "final": "direct",
    "auto_detect_interface": true
  }
}

I'm trying this config, but when I browse ipinfo.io it shows me my ip without proxy connection But without domain_suffix it works and shows me SS proxy ip, why?

Reproduction

Use my config with official google play sing-box

Logs


Supporter

Integrity requirements

  • [x] 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.
  • [x] 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.
  • [x] 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.
  • [x] 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.

testing765 avatar Mar 31 '25 16:03 testing765

Oops, looks like I made a mistake somewhere and now everything works again

testing765 avatar Mar 31 '25 18:03 testing765

@testing765 how did you solve it ? I wanted to only route ipinfo.io to the proxy and proxy mode not tun mode

shakibamoshiri avatar May 06 '25 18:05 shakibamoshiri