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

Feature request: DNS query strategy per domain #3090

Closed
darren opened this issue Jul 21, 2024 · 2 comments
Closed

Feature request: DNS query strategy per domain #3090

darren opened this issue Jul 21, 2024 · 2 comments

Comments

@darren
Copy link

darren commented Jul 21, 2024

DNS config has a global field queryStrategy

   "queryStrategy": "UseIPv4"

dns query will only return ipv4 address, but this is a global config not per domain.

how about use static host mapping with two keywords: ip4.only, ip6.only

  "dns": {
    "hosts": {
      "domain:google.com": "ip4.only",
      "domain:googleapis.com": "ip6.only" 
    },

And google.com will resolve to ipv4 only address, and googleapis.com to ipv6 only address

@dyhkwong
Copy link
Contributor

dyhkwong commented Jul 22, 2024

Since d3b50bb DNS queryStrategy can be per-server.

"servers": [
        {
            "address": "1.1.1.1",
            "port": 53,
            "domains": [
                "1.example.com"
            ],
            "queryStrategy": "UseIPv4"
        },
        {
            "address": "1.1.1.1",
            "port": 53,
            "domains": [
                "2.example.com"
            ],
            "queryStrategy": "UseIPv6"
        }
]

@darren
Copy link
Author

darren commented Jul 22, 2024

Since d3b50bb DNS queryStrategy can be per-server.

This works, but since this is a per-server setting if configuring multiple dns servers for redundancy, the config needs to be duplicated, a little less elegant.

@darren darren closed this as completed Jul 22, 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

Successfully merging a pull request may close this issue.

2 participants