From ab11c74172b19d3f5bf94cfd5b85401936a6b180 Mon Sep 17 00:00:00 2001 From: "Konstantinos Stamou (Dinos)" Date: Sun, 5 Apr 2020 18:07:42 +0300 Subject: [PATCH] luci-app-https-dns-proxy: Add LibreDNS as a DoH provider LibreDNS (libredns.gr) is a Doh service provided by LibreOps(libreops.cc), a group of hackers around the world that are (re-)decentralizing the net. Trying offering distributed, free (as in freedom) services to the world. Always based on Free Open Source Software. Signed-off-by: Konstantinos Stamou (Dinos) --- .../https-dns-proxy/providers/gr.libredns.doh-ads.lua | 6 ++++++ .../luasrc/https-dns-proxy/providers/gr.libredns.doh.lua | 6 ++++++ .../luasrc/model/cbi/https-dns-proxy.lua | 4 +++- .../luci-app-https-dns-proxy/po/en/https-dns-proxy.po | 8 ++++++++ .../po/templates/https-dns-proxy.pot | 8 ++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh-ads.lua create mode 100644 applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh.lua diff --git a/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh-ads.lua b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh-ads.lua new file mode 100644 index 0000000000..e6fba2e78a --- /dev/null +++ b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh-ads.lua @@ -0,0 +1,6 @@ +return { + name = "LibreDNS", + label = _("LibreDNS (No Ads)"), + resolver_url = "https://doh.libredns.gr/ads", + bootstrap_dns = "116.202.176.26" +} diff --git a/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh.lua b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh.lua new file mode 100644 index 0000000000..24d2ceeffa --- /dev/null +++ b/applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh.lua @@ -0,0 +1,6 @@ +return { + name = "LibreDNS", + label = _("LibreDNS"), + resolver_url = "https://doh.libredns.gr/dns-query", + bootstrap_dns = "116.202.176.26" +} diff --git a/applications/luci-app-https-dns-proxy/luasrc/model/cbi/https-dns-proxy.lua b/applications/luci-app-https-dns-proxy/luasrc/model/cbi/https-dns-proxy.lua index 11eca60399..57ca2f63fb 100644 --- a/applications/luci-app-https-dns-proxy/luasrc/model/cbi/https-dns-proxy.lua +++ b/applications/luci-app-https-dns-proxy/luasrc/model/cbi/https-dns-proxy.lua @@ -88,7 +88,9 @@ s3 = m:section(TypedSection, "https-dns-proxy", translate("Instances"), translat .. [[ ]] .. "AdGuard.com" .. [[]] .. ", " .. [[ ]] - .. "CleanBrowsing.org" .. [[]] .. " " .. translate("and") .. " " + .. "CleanBrowsing.org" .. [[]] .. " " + .. [[ ]] + .. "Libredns.gr" .. [[]] .. "Quad9.net" .. [[]] .. ".") s3.template = "cbi/tblsection" diff --git a/applications/luci-app-https-dns-proxy/po/en/https-dns-proxy.po b/applications/luci-app-https-dns-proxy/po/en/https-dns-proxy.po index 9dc2bebfb5..4c462b5c4d 100644 --- a/applications/luci-app-https-dns-proxy/po/en/https-dns-proxy.po +++ b/applications/luci-app-https-dns-proxy/po/en/https-dns-proxy.po @@ -88,6 +88,14 @@ msgstr "" msgid "Loading" msgstr "" +#: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh.lua:3 +msgid "LibreDNS" +msgstr "" + +#: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh-ads.lua:3 +msgid "LibreDNS (No Ads)" +msgstr "" + #: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/cz.nic.odvr.lua:3 msgid "ODVR (nic.cz)" msgstr "" 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 3e1ddb2a32..daf8694da4 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 @@ -85,6 +85,14 @@ msgstr "" msgid "Loading" msgstr "" +#: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh.lua:3 +msgid "LibreDNS" +msgstr "" + +#: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/gr.libredns.doh-ads.lua:3 +msgid "LibreDNS (No Ads)" +msgstr "" + #: applications/luci-app-https-dns-proxy/luasrc/https-dns-proxy/providers/cz.nic.odvr.lua:3 msgid "ODVR (nic.cz)" msgstr "" -- 2.30.2