MCPcopy
hub / github.com/sbwml/luci-app-mosdns

github.com/sbwml/luci-app-mosdns @v5.3.4-r5 sqlite

repository ↗ · DeepWiki ↗ · release v5.3.4-r5 ↗
440 symbols 1,571 edges 10 files 0 documented · 0%
README

luci-app-mosdns

MosDNS is a plug-in DNS forwarder. Users can splicing plug-ins as needed to customize their own DNS processing logic.

DNS protocol standard

General DNS (UDP): 119.29.29.29 & udp://119.29.29.29:53

General DNS (TCP): tcp://119.29.29.29 & tcp://119.29.29.29:53

DNS-over-TLS: tls://120.53.53.53 & tls://120.53.53.53:853

DNS-over-HTTPS: https://120.53.53.53/dns-query

DNS-over-HTTPS (HTTP/3): h3://dns.alidns.com/dns-query

DNS-over-QUIC: quic://dns.alidns.com & doq://dns.alidns.com

New Data Provider: adblock_set

The parser supports the following common DNS-related rule formats:

  • ||example.com^: Subdomain match.
  • example.com: Exact match.
  • |example.com|: Exact match.
  • /regexp/: Regular expression match.
  • *keyword*: Keyword match.
  • @@: Prefix for whitelisting rules.
  • mosdns rules: domain:, full:, keyword:, regexp:

You can now use the new provider in your config.yaml:

plugins:
  - tag: "ad_rules"
    type: adblock_set
    args:
      files:
        - "./adguard_dns.txt"
        - "./easylist.txt"

  - tag: "query_is_ad"
    type: query_matcher
    args:
      domain:
        - "provider:ad_rules"

How to build

  • Enter in your openwrt dir

  • Openwrt official SnapShots

  • requires golang 1.25.x or latest version shell rm -rf feeds/packages/lang/golang git clone https://github.com/sbwml/packages_lang_golang -b 26.x feeds/packages/lang/golang

```shell # remove v2ray-geodata package from feeds rm -rf feeds/packages/net/v2ray-geodata

git clone https://github.com/sbwml/luci-app-mosdns -b v5 package/mosdns git clone https://github.com/sbwml/v2ray-geodata package/v2ray-geodata make menuconfig # choose LUCI -> Applications -> luci-app-mosdns make package/mosdns/luci-app-mosdns/compile V=s ```

  • Non-Openwrt official source

```shell # drop mosdns and v2ray-geodata packages that come with the source find ./ | grep Makefile | grep v2ray-geodata | xargs rm -f find ./ | grep Makefile | grep mosdns | xargs rm -f

git clone https://github.com/sbwml/luci-app-mosdns -b v5 package/mosdns git clone https://github.com/sbwml/v2ray-geodata package/v2ray-geodata make menuconfig # choose LUCI -> Applications -> luci-app-mosdns make package/mosdns/luci-app-mosdns/compile V=s ```


How to install prebuilt packages

  • Login OpenWrt terminal (SSH)

  • Install curl package ```shell # for opkg package manager (24.10) opkg update opkg install curl

# for apk package manager (25.12 or latest) apk update apk add curl ```

  • Execute install script (Multi-architecture support) shell sh -c "$(curl -ksS https://raw.githubusercontent.com/sbwml/luci-app-mosdns/v5/install.sh)"

install via ghproxy: shell sh -c "$(curl -ksS https://raw.githubusercontent.com/sbwml/luci-app-mosdns/v5/install.sh)" _ gh_proxy="https://gh.cooluc.com"


1

Core symbols most depended-on inside this repo

getServiceStatus
called by 1
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js
renderStatus
called by 1
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js
loadCodeMirrorResources
called by 1
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js
loadStyles
called by 1
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js
loadScripts
called by 1
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js
pollLog
called by 1
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/update.js
load
called by 0
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js
handleFlushCache
called by 0
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js

Shape

Function 440

Languages

TypeScript100%

Modules by API surface

luci-app-mosdns/htdocs/luci-static/resources/codemirror5/codemirror.min.js357 symbols
luci-app-mosdns/htdocs/luci-static/resources/codemirror5/libs/js-yaml.min.js57 symbols
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js8 symbols
luci-app-mosdns/htdocs/luci-static/resources/codemirror5/addon/lint/lint.min.js8 symbols
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/update.js3 symbols
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/logs.js3 symbols
luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js2 symbols
luci-app-mosdns/htdocs/luci-static/resources/codemirror5/addon/display/autorefresh.min.js2 symbols

For agents

$ claude mcp add luci-app-mosdns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact