Skip to content

Cannot add dnswarden urls to openwrt #45

@5p0ng3b0b

Description

@5p0ng3b0b

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions