X-UI使用DNS解锁流媒体配置

1,167次阅读

有时候自己的vps并不能完全解锁对应地区的流媒体,但是自己又有观看需求,再去整一个服务器显然不是很划算,于是不知道从什么时候开始就有了dns解锁流媒体这个东西,可以使流媒体的流量分流到能解锁流媒体的服务器上来进行解锁对应流媒体,但是很多小伙伴并不知道具体怎么配置,下面给出参考配置。

首先vps上搭建好x-ui,因为这个对新手来说很方面,有界面一目了然能看到,然后到x-ui的面板设置,找到xray相关设置,开始修改配置文件。

{
  "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": {"domainStrategy": "UseIP"}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "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"
      }
    ]
  },    "dns": {
    "servers": [
      "1.1.1.1","8.8.8.8", 
      {
        "address": "4.4.4.4(以实际提供商给出的为准)", 
        "port": 53,
        "domains": [
           "geosite:netflix"
        ]
      }
    ]
  },
  "stats": {}
}

可以复制上面的配置到x-ui配置中,然后复制DNS解锁商家给出的ip地址,粘贴到配置文件中的相应位置,在domains里可以添加解锁商可以解锁的相应流媒体域名,但是要保证添加格式一定要和上面相同,不然保存不了,比如要添加迪士尼解锁

        "domains": [
           "geosite:netflix",
           "geosite:disney"
        ]

x-ui配置里的geo文件自带有流媒体域名分流,所以要在前面加上geosite:而有些没有自带分流的就需要添加域名,但是要给每条域名前后加上英文双引号(”)号且用英文逗号隔开,下面是已知的geo文件分组域名

"geosite:netflix","geosite:bahamut","geosite:hulu","geosite:hbo","geosite:disney","geosite:bbc","geosite:4chan","geosite:fox","geosite:abema","geosite:dmm","geosite:niconico","geosite:pixiv","geosite:bilibili","geosite:viu"

修改配置文件完成后记得保存配置然后重启面板,测试节点是否解锁相应流媒体,如果觉得这个方法太麻烦了,推荐用WARP一键解锁,方便快捷,以上方法仅供参考,不确定是否适合每个vps。

ChatGPT的解锁域名:

openai.com
cdn.auth0.com
azureedge.net
sentry.io
azurefd.net
intercomcdn.com
intercom.io
google-analytics.com
identrust.com
challenges.cloudflare.com
ai.com
正文完
 0