Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.