Source: https://github.com/sbwml/luci-app-mosdns
🎁 MosDNS v5 is Ready! 🎉
v5 version has added more functional options, and it continues to use the v2ray-geodata database for rules. Under custom configuration mode, it comes with the v2ray-geodata database export function, allowing you to use the geosite database list at any time when writing custom configurations.
For users currently using v4 version, you can smoothly upgrade to v5 using the installation script!
⚠Attention⚠
If you have previously installed other versions of MosDNS LuCI or your firmware comes with MosDNS installed, it may not run properly after installation. You need to uninstall other versions and clear residual data before reinstalling to use it.
Solution:
- Uninstall all software packages containing the "mosdns" characters.
- Delete data rm -rf /etc/config/mosdns /etc/mosdns
- Reinstall mosdns
Installation method
How to install prebuilt packages (OpenWrt 18-22)
Login OpenWrt terminal (SSH)
Install curl package
opkg update
opkg install curl
Execute install script (Multi-architecture support)
sh -c "$(curl -ksS https://raw.githubusercontent.com/sbwml/luci-app-mosdns/v5/install.sh)"
Plugin screenshot
Default configuration for regular users (generally sufficient)
Default configuration
1
2
3
Rule list
Whitelist: Domains added will always be allowed to be resolved using "Local DNS" and have the highest priority (one domain per line, supports domain matching rules)
Blacklist: Domains added will block DNS resolution (one domain per line, supports domain matching rules)
Greylist: Domains added will always use "Remote DNS" for resolution (one domain per line, supports domain matching rules)
DDNS domain: Domains added will always use "Local DNS" for resolution, with a forced TTL of 5 seconds, and the resolution result will not be cached (one domain per line, supports domain matching rules)
Hosts: Custom Hosts rewrite, e.g., baidu.com 10.0.0.1 (one rule per line)
Redirect: Redirect domain requests. Request domain A, but return domain B records, e.g., baidu.com qq.com (one rule per line)
PTR blacklist: Domains added will block PTR requests (one domain per line, supports domain matching rules)
4
Database update (geodata, providing ad lists, mainland domains, IP attribution)
22
Log files
33
Advanced users' DIY configuration
11
22