Last active
March 7, 2022 15:56
-
-
Save doorbash/dd3fd0e04098eef898d2a836bcc351b8 to your computer and use it in GitHub Desktop.
coredns docker compose config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
example.com { | |
file db.example.com | |
log | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ORIGIN example.com. | |
$TTL 1h | |
@ IN SOA ns1.example.com. info.exmaple.com. ( | |
2020010510 ; Serial | |
1d ; Refresh | |
2h ; Retry | |
4w ; Expire | |
1h) ; Minimum TTL | |
@ IN A 1.2.3.4 | |
@ IN NS ns1.example.com. | |
ns1 IN CNAME @ | |
www IN CNAME @ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coredns: | |
restart: always | |
logging: | |
driver: "json-file" | |
options: | |
max-size: "200m" | |
volumes: | |
- ./docker/coredns/Corefile:/Corefile | |
- ./docker/coredns/db.example.com:/db.example.com | |
ports: | |
- "53:53/udp" | |
image: coredns/coredns:latest |
Author
doorbash
commented
Mar 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment