Skip to content

Instantly share code, notes, and snippets.

@mirorauhala
Created August 26, 2021 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirorauhala/15be64432588f82fdd443c8e83d0a46e to your computer and use it in GitHub Desktop.
Save mirorauhala/15be64432588f82fdd443c8e83d0a46e to your computer and use it in GitHub Desktop.
CoreDNS
# ns1.rauhala.dev
.:53 {
log
errors
cache
any
}
rauhala.dev {
file /etc/coredns/db.rauhala.dev
any
transfer {
to 10.135.0.3
}
log
}
# ns2.rauhala.dev
.:53 {
log
errors
cache
any
}
rauhala.dev {
any
secondary {
transfer from 10.135.0.2
}
log
}
version: "3.1"
services:
coredns:
image: coredns/coredns:latest
ports:
- 53:53/tcp
- 53:53/udp
volumes:
- ./coredns:/etc/coredns
command: ["-conf", "/etc/coredns/Corefile"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment