Skip to content

Instantly share code, notes, and snippets.

@simonherbert
Last active January 23, 2018 18:20
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 simonherbert/7301569c5dc054817c512230c0d170c0 to your computer and use it in GitHub Desktop.
Save simonherbert/7301569c5dc054817c512230c0d170c0 to your computer and use it in GitHub Desktop.
Example file for bind9 with domain shop.example.com
apt update
apt install bind9 -y
zone "shop.example.com" {
type master;
file "/etc/bind/db.shop.example.com";
};
$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