Last active
January 23, 2018 18:20
-
-
Save simonherbert/7301569c5dc054817c512230c0d170c0 to your computer and use it in GitHub Desktop.
Example file for bind9 with domain shop.example.com
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
apt update | |
apt install bind9 -y |
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
zone "shop.example.com" { | |
type master; | |
file "/etc/bind/db.shop.example.com"; | |
}; |
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
$TTL 604800 | |
@ IN SOA shop.example.com. info.shop.example.com ( | |
2 ; Serial | |
604800 ; Refresh | |
86400 ; Retry | |
2419200 ; Expire | |
604800 ) ; Negative Cache TTL | |
; Name server | |
shop.example.com. IN NS ns.shop.example.com. | |
; A-record for name server | |
ns IN A 1.2.3.4 | |
* IN A 1.2.3.4 ; wildcard DNS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment