DNSOnward: A container using CoreDNS that proxies DNS traffic to a DNS-over-TLS provider

栏目: IT技术 · 发布时间: 4年前

内容简介:A CoreDNS based service that forwards traditional DNS requests to a DNS-over-TLS upstream serverRunThis will start the service using Cloudflare as its upstream DNS server. You can replace "cloudflare" in the line above with either "google" or "quad9" to us

DNS-Onward

A CoreDNS based service that forwards traditional DNS requests to a DNS-over-TLS upstream server

Quickstart

Run docker run -e SERVICE="cloudflare" -p 53:53 -p 53:53/udp eldridgea/dnsonward

This will start the service using Cloudflare as its upstream DNS server. You can replace "cloudflare" in the line above with either "google" or "quad9" to use their servers instead. This will open up port 53 on your machine and allow it to accept incoming DNS requests. environments WARNING: It is NOT recommended to expose this service to the entire Internet, just in private network environments.

Supported Devices and Architectures

This supports ARMv7 and amd64 architectures so this should work on on most servers as well as Raspberry Pis. I have tested it successfully on my Pi 4 running Raspbian 10. If you're having an issue on other Pi hardware/OS versions please open an issue.

Variables

This is CoreDNS-based service intended to be run in environments where traditional DNS requests need to be encrypted before querying an upstream server.

This is intended to be run as a docker container and configured with environment variables.

Onward DNS supports Cloudflare, Google, and Quad9 out of the box with the SERVICE variable, but can also be configured for any DnS-over-TLS (DoT) server.

If you are starting this container you should either supply it with the SERVICE environment variable OR supply it with at least the IP1 and SERVERNAME variables.

Env Variable Function Values
SERVICE Auto configures Onward DNS based on supported services google , cloudflare , and quad9
IP1 A primary upstream DNS IP Address Any IPv4 Address
IP2 A secondary upstream DNS IP Address Any IPv4 Address
SERVERNAME The TLS servername The domain name of the DoT server
CACHE The amount of time DNS responses are cached locally Time in seconds e.g. 100s . Default is 30s

Multi-Arch Builds in Docker

This is pushed to the eldridgea/dnsonward Dockerhub repository using Docker's experimental multi-arch build tool buildx . Building this repo using the standard docker build process should continue to work fine, but to build a multi-arch image yourself in this repo use, make sure you have buildx enabled and run:

docker buildx build --platform linux/amd64,linux/arm/v7 -t eldridgea/dnsonward --push . and replace eldridgea/dnsonward with the repo you'd like to push your build to. You can also add more supported architectures in addition to the amd64 and armv7 ones


以上所述就是小编给大家介绍的《DNSOnward: A container using CoreDNS that proxies DNS traffic to a DNS-over-TLS provider》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

高性能网站建设指南(第二版)

高性能网站建设指南(第二版)

Steve Souders / 刘彦博 / 电子工业出版社 / 2015-5 / 55.00元

《高性能网站建设指南:前端工程师技能精髓》结合Web 2.0以来Web开发领域的最新形势和特点,介绍了网站性能问题的现状、产生的原因,以及改善或解决性能问题的原则、技术技巧和最佳实践。重点关注网页的行为特征,阐释优化Ajax、CSS、JavaScript、Flash和图片处理等要素的技术,全面涵盖浏览器端性能问题的方方面面。在《高性能网站建设指南:前端工程师技能精髓》中,作者给出了14条具体的优化......一起来看看 《高性能网站建设指南(第二版)》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具