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

Routing Custom rule issue #3061

Closed
bia-pain-bache opened this issue Apr 28, 2024 · 2 comments
Closed

Routing Custom rule issue #3061

bia-pain-bache opened this issue Apr 28, 2024 · 2 comments

Comments

@bia-pain-bache
Copy link

If we set custom rules for routing like this:

geosite:category-ir,
domain:.ir,
geoip:ir

And export config JSON, it will be something like this:

"servers": [
  "https://8.8.8.8/dns-query",
  {
    "address": "8.8.8.8",
    "domains": [
      "geosite:category-ir",
      "domain:.ir"
    ],
    "expectIPs": [
      `"geoip:cn"`
    ],
    "port": 53
  }
]

As you can see, expectIPs for local dns will still remain cn which corrupts validation. Please remove it or replace it with custom geoip entered by user.

@kekomenos
Copy link

If we set custom rules for routing like this:

geosite:category-ir, domain:.ir, geoip:ir

And export config JSON, it will be something like this:

"servers": [
  "https://8.8.8.8/dns-query",
  {
    "address": "8.8.8.8",
    "domains": [
      "geosite:category-ir",
      "domain:.ir"
    ],
    "expectIPs": [
      `"geoip:cn"`
    ],
    "port": 53
  }
]

As you can see, expectIPs for local dns will still remain cn which corrupts validation. Please remove it or replace it with custom geoip entered by user.

2dust added a commit that referenced this issue May 1, 2024
@2dust
Copy link
Owner

2dust commented May 2, 2024

96f56b4

@2dust 2dust closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants