From 9c2bc71d2e8389e4d05f20bdcbb4dc3d8b7eb779 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Wed, 29 Jul 2020 09:41:12 +0000 Subject: [PATCH] luci-app-https-dns-proxy: add OpenDNS servers Signed-off-by: Stan Grishin --- applications/luci-app-https-dns-proxy/Makefile | 2 +- .../luasrc/https-dns-proxy/providers/com.opendns.doh.lua | 8 ++++++++ .../providers/com.opendns.familyshield.doh.lua | 8 ++++++++ .../po/templates/https-dns-proxy.pot | 8 ++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.doh.lua create mode 100644 applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.familyshield.doh.lua diff --git a/applications/luci-app-https-dns-proxy/Makefile b/applications/luci-app-https-dns-proxy/Makefile index b18e019aaa..097f93b641 100644 --- a/applications/luci-app-https-dns-proxy/Makefile +++ b/applications/luci-app-https-dns-proxy/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=DNS Over HTTPS Proxy Web UI LUCI_DESCRIPTION:=Provides Web UI for DNS Over HTTPS Proxy LUCI_DEPENDS:=+luci-compat +luci-mod-admin-full +https-dns-proxy LUCI_PKGARCH:=all -PKG_RELEASE:=9 +PKG_RELEASE:=10 include ../../luci.mk diff --git a/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.doh.lua b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.doh.lua new file mode 100644 index 0000000000..b3eff188a1 --- /dev/null +++ b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.doh.lua @@ -0,0 +1,8 @@ +return { + name = "OpenDNS", + label = _("OpenDNS"), + resolver_url = "https://doh.opendns.com/dns-query", + bootstrap_dns = "208.67.222.222,208.67.220.220", + help_link = "https://support.opendns.com/hc/en-us/articles/360038086532-Using-DNS-over-HTTPS-DoH-with-OpenDNS", + help_link_text = "OpenDNS" +} diff --git a/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.familyshield.doh.lua b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.familyshield.doh.lua new file mode 100644 index 0000000000..12cc89a965 --- /dev/null +++ b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.familyshield.doh.lua @@ -0,0 +1,8 @@ +return { + name = "OpenDNS-FamilyShield", + label = _("OpenDNS (Family Shield)"), + resolver_url = "https://doh.familyshield.opendns.com/dns-query", + bootstrap_dns = "208.67.222.123,208.67.220.123", + help_link = "https://support.opendns.com/hc/en-us/articles/360038086532-Using-DNS-over-HTTPS-DoH-with-OpenDNS", + help_link_text = "OpenDNS" +} diff --git a/applications/luci-app-https-dns-proxy/po/templates/https-dns-proxy.pot b/applications/luci-app-https-dns-proxy/po/templates/https-dns-proxy.pot index 00931c200a..7b680cd15c 100644 --- a/applications/luci-app-https-dns-proxy/po/templates/https-dns-proxy.pot +++ b/applications/luci-app-https-dns-proxy/po/templates/https-dns-proxy.pot @@ -113,6 +113,14 @@ msgstr "" msgid "ODVR (nic.cz)" msgstr "" +#: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.doh.lua:3 +msgid "OpenDNS" +msgstr "" + +#: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/com.opendns.familyshield.doh.lua:3 +msgid "OpenDNS (Family Shield)" +msgstr "" + #: applications/luci-app-https-dns-proxy/luasrc/model/cbi/https-dns-proxy.lua:177 msgid "Proxy server" msgstr "" -- 2.30.2