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

direct connection over DOH or DOT of an DNS #207

Open
itsDantes opened this issue Dec 30, 2024 · 4 comments
Open

direct connection over DOH or DOT of an DNS #207

itsDantes opened this issue Dec 30, 2024 · 4 comments

Comments

@itsDantes
Copy link

itsDantes commented Dec 30, 2024

is there any example to pass traffic over DOH or an DOT format of DNS ? by this way we can make an DNS Changer app that can make user connection source over DNS by XRAY core. please help me about it.

@Fangliding
Copy link
Member

I think this can be considered, I will add an example like this when I have time

@itsDantes
Copy link
Author

itsDantes commented Dec 31, 2024

@Fangliding well. i searched a lot. i have a config may can help you to improve it. its mixed with DOH and Warp. I hope it can help speed up this idea.

client side:

{
  "dns": {
    "disableCache": true,
    "servers": [
      "https://1.1.1.1/dns-query"
    ] 
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 10808,
      "protocol": "socks",
      "settings": {
        "auth": "noauth",
        "udp": true,
        "userLevel": 8
      },
      "sniffing": {
        "destOverride": [
          "http",
          "tls"
        ],
        "enabled": true
      },
      "tag": "socks"
    },
    {
      "listen": "127.0.0.1",
      "port": 10809,
      "protocol": "http",
      "settings": {
        "userLevel": 8
      },
      "sniffing": {
        "destOverride": [
          "http",
          "tls"
        ],
        "enabled": true
      },
      "tag": "http"
    }
  ],
  "log": {
    "loglevel": "warning"
  },
  "outbounds": [
    {
      "protocol": "wireguard",
      "settings": {
        "vnext": [
          {
            "address": "127.0.0.1",
            "port": "10808"
          }
        ],
        "address": [
          "172.16.0.2/32"
        ], 
        "mtu": 1280,
        "peers": [
          {
            "endpoint": "162.159.195.183:1010",
            "keepAlive": 5, 
            "publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo="
          }
        ],
        "reserved": [
          101,
          28,
          46
        ],
        "secretKey": "qIwfDa3Y6cDgIyZobbMGkZHdwyP7HMaCVDcVwsouBG4=",
        "wnoise": "quic",
        "wnoisecount": "15",
        "wnoisedelay": "1-2",
        "wpayloadsize": "5-10"
      },
      "tag": "proxy"
    },
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "block"
    }
  ],
  "remarks": "DOH - WARP",
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": []
  }
}

@Fangliding
Copy link
Member

Oh, I understand what you want now. But what I want to write may not be what you need

@itsDantes
Copy link
Author

@Fangliding , im looking for an simple config to do this job by XRAY core in client side.
no matter whats the server side config or settings is set

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