项目作者: flavien-perier

项目描述 :
Dockerfile for Bind DNS.
高级语言: Shell
项目地址: git://github.com/flavien-perier/dockerfile-dns.git
创建时间: 2020-09-08T13:05:15Z
项目社区:https://github.com/flavien-perier/dockerfile-dns

开源协议:MIT License

下载


license
docker pulls
ci status

Dockerfile DNS

Dockerfile for Bind DNS.

Env variables

  • SERVER_DOMAIN: IP or domain to resolve.
  • BASE_PATH: Base path (example: domain.lan).
  • SUB_DOMAINS: List of sub-domains (for example: www mail cloud).
  • SUB_DNS: List of sub DNS. By default the service uses OpenDNS.

Ports

  • 53: UDP

Docker-compose example

  1. dns:
  2. image: flavienperier/dns
  3. container_name: dns
  4. restart: always
  5. ports:
  6. - 53:53/udp
  7. environment:
  8. SERVER_DOMAIN: nginx
  9. BASE_PATH: domain.lan
  10. SUB_DOMAINS: www mail cloud
  11. SUB_DNS: 208.67.222.222 208.67.220.220