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 Hosts Option Problem #4254

Open
ouncommono opened this issue Jan 11, 2025 · 2 comments
Open

Dns Hosts Option Problem #4254

ouncommono opened this issue Jan 11, 2025 · 2 comments

Comments

@ouncommono
Copy link

ouncommono commented Jan 11, 2025

Fortunately, in the new versions of v2rayNG, the ability to manually define DNS Hosts has been added, which is very useful.
But since this option is new, it also has some drawbacks.
The problem I have encountered is that when I want to define an address list for a domain, this is not possible.
It means that only one address can be defined for each domain.
Another thing is that it is not possible to define the address with the IPV6 format.

For example:

domain:address,...

This template cannot be used:

dns.cloudflare.com:[1.1.1.1,1.0.0.1,2606:4700:4700::1111,2606:4700:4700::1001]

or:

dns.cloudflare.com:2606:4700:4700::1111

or:

dns.cloudflare.com:1.1.1.1,1.0.0.1

For each address that is entered, the client will automatically put that value in "".

As a result:

dns.cloudflare.com:[1.1.1.1]

It is defined in the client as follows:

dns.cloudflare.com:"[1.1.1.1]"

@2dust
Copy link
Owner

2dust commented Jan 12, 2025

You can only define them one by one, and do not support defining a list.

@2dust
Copy link
Owner

2dust commented Jan 12, 2025

Or you can directly use the json format definition, so that users can enter any content they want.
The disadvantage is that it is a bit difficult.

{
      "baidu.com": "127.0.0.1",
      "dns.google": ["8.8.8.8", "8.8.4.4"]
    },

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

2 participants