全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 777|回复: 5

x-ui增加DNS解锁为啥不生效呢?

[复制链接]
发表于 2024-1-26 18:47:04 | 显示全部楼层 |阅读模式
"dns": {
        "servers": [
            {
                "address": "xxxx",
                "port": 53,
                "domains": [
                    "geosite:netflix",
                    "geosite:disney"
                ]
            },
            "localhost"
        ]
    }

加了上面的配置还是不生效,不过把这个IP直接写到/etc/resolv.conf中是可以的,大佬们分析一下有啥原因???
发表于 2024-1-26 19:04:10 | 显示全部楼层
这个不懂,都是用新加坡
发表于 2024-1-26 19:16:30 | 显示全部楼层
address 那里写的啥?
发表于 2024-1-26 19:40:05 | 显示全部楼层
routing设IPIfNonMatch,freedom设UseIP,inbounds设sniffing开destOverride
 楼主| 发表于 2024-1-27 17:49:50 | 显示全部楼层
JCB 发表于 2024-1-26 19:40
routing设IPIfNonMatch,freedom设UseIP,inbounds设sniffing开destOverride

{
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "handshake": 10,
        "connIdle": 100,
        "uplinkOnly": 2,
        "downlinkOnly": 3,
        "statsUserUplink": true,
        "statsUserDownlink": true,
        "bufferSize": 10240
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      }
    ]
  },
  "stats": {},
"dns": {
        "servers": [
            {
                "address": "xxxxx",
                "port": 53,
                "domains": [
                    "geosite:netflix",
                    "geosite:disney"
                ]
            },
            "localhost"
        ]
    }
}

大佬帮我看看这个怎么改
 楼主| 发表于 2024-1-27 17:50:51 | 显示全部楼层
众生平等 发表于 2024-1-26 19:16
address 那里写的啥?

别人给的解锁的IP
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-12 13:36 , Processed in 0.075645 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表