<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Openwrt on heartnn的自留地</title><link>https://www.heartnn.com/tags/openwrt/</link><description>Recent content in Openwrt on heartnn的自留地</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><copyright>&amp;copy;2008-2022 heartnn的自留地</copyright><lastBuildDate>Wed, 25 May 2022 09:47:08 +0800</lastBuildDate><atom:link href="https://www.heartnn.com/tags/openwrt/index.xml" rel="self" type="application/rss+xml"/><item><title>OpenWrt中MosDNS配置</title><link>https://www.heartnn.com/2022/05/25/config-mosdns-in-openwrt/</link><pubDate>Wed, 25 May 2022 09:47:08 +0800</pubDate><guid>https://www.heartnn.com/2022/05/25/config-mosdns-in-openwrt/</guid><description>&lt;p>请配合luci-app-mosdns包的自定义配置食用，本配置修改自官方配置luci-app-mosdns包的配置，兼顾了IPv6的功能，但不会碰到那种客户端解析IPv6优先导致超时连接的恶心情况。&lt;/p>
&lt;p>使用时注意一下几点，避免踩坑：&lt;/p>
&lt;ol>
&lt;li>端口号如果不是5335的需要自行修改。&lt;/li>
&lt;li>配置里的DNS可以使用UDP、DOH、DOT连接，使用DOH和DOT时第一个DNS尽量使用IP，如果一定要使用域名，请参考官方配置对应的IP地址，因为MosDNS可能不能直接解析域名。&lt;/li>
&lt;li>与Passwall的配合使用，需要将Passwall的远程DNS设置为&lt;code>127.0.0.1:5335&lt;/code>或者你的自定义端口号。&lt;/li>
&lt;li>保证配置中提到的文件可用，除了luci-app-mosdns包，还需要安装v2ray，安装了Passwall的会自动安装v2ray依赖。&lt;/li>
&lt;/ol>
&lt;p>以下是&lt;code>/etc/mosdns/cus_config.yaml&lt;/code>的内容：&lt;/p></description></item></channel></rss>