Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot add dnswarden urls to openwrt #45

Open
5p0ng3b0b opened this issue Mar 5, 2025 · 0 comments
Open

Cannot add dnswarden urls to openwrt #45

5p0ng3b0b opened this issue Mar 5, 2025 · 0 comments

Comments

@5p0ng3b0b
Copy link

I have tried to add your dns servers to a custom version of openwrt. The script below kind of explains the format that is required as far as I can guess but none of the configs work. All sites are blocked so I must be getting something wrong. Not sure what your bootstrap dns is, so I used the ip address of dnswarden.com. This is likely the problem.

cat /tmp/add-dnswarden-https-dns.sh
#/bin/sh
#Script to add DNSWarden options in openwrt luci-app-https-dns-proxy package

cat <<EOF>/usr/lib/lua/luci/https-dns-proxy/providers/com.dnswarden.adblock.lua
return {
        name = "dns.dnswarden.com",
        label = _("DNSWarden (Adblock)"),
        resolver_url = "https://dns.dnswarden.com/adblock",
        bootstrap_dns = "149.248.217.117",
        help_link = "https://github.com/bhanupratapys/dnswarden",
        help_link_text = "DNSWarden github"
}
EOF
cat <<EOF>/usr/lib/lua/luci/https-dns-proxy/providers/com.dnswarden.uncensored.lua
return {
        name = "dns.dnswarden.com",
        label = _("DNSWarden (Uncensored)"),
        resolver_url = "https://dns.dnswarden.com/uncensored",
        bootstrap_dns = "149.248.217.117",
        help_link = "https://github.com/bhanupratapys/dnswarden",
        help_link_text = "DNSWarden github"
}
EOF
cat <<EOF>/usr/lib/lua/luci/https-dns-proxy/providers/com.dnswarden.adult.lua
return {
        name = "dns.dnswarden.com",
        label = _("DNSWarden (Adult-Filter)"),
        resolver_url = "https://dns.dnswarden.com/adultfilter",
        bootstrap_dns = "149.248.217.117",
        help_link = "https://github.com/bhanupratapys/dnswarden",
        help_link_text = "DNSWarden github"
}
EOF

In the existing working configs, the google dns entry for example has 8.8.8.8, 8.8.4.4 as the bootstrap_dns.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant