Change indentation and improve zones template

This commit is contained in:
Beu 2019-04-26 18:40:34 +02:00
parent 51a3cd4dd7
commit d9894c090c
1 changed files with 33 additions and 35 deletions

View File

@ -11,17 +11,17 @@ The repository is thought like this:
``` ```
. .
├── named.conf # default file, have only include ├── named.conf # default file, have only include
├── named.conf.keys # have all TSIG keys and rndc config ├── named.conf.keys # have all TSIG keys and rndc config
├── named.conf.options # have all bind options ├── named.conf.options # have all bind options
├── named.conf.view # have all views options ├── named.conf.view # have all views options
├── keys # directory with all DNSSEC keys ├── keys # directory with all DNSSEC keys
├── views ├── views
│   ├── local.conf # have all zones options of the "local" view │   ├── local.conf # have all zones options of the "local" view
│   └── public.conf # have all zones options of the "public" view │   └── public.conf # have all zones options of the "public" view
└── zones └── zones
├── local # directory with all zones records of the "local" view ├── local # directory with all zones records of the "local" view
└── public # directory with all zones records of the "public" view └── public # directory with all zones records of the "public" view
``` ```
@ -38,40 +38,38 @@ then add **zones/local/exemple.com.conf** file with all your records like this :
``` ```
$ORIGIN example.com. $ORIGIN example.com.
$TTL 86400 $TTL 3600
@ SOA dns1.example.com. hostmaster.example.com. ( @ SOA dns1.example.com. hostmaster.example.com. (
2001062501 ; serial 2019010101 ; serial
21600 ; refresh after 6 hours 86400 ; refresh
3600 ; retry after 1 hour 7200 ; retry
604800 ; expire after 1 week 3600000 ; expire
86400 ) ; minimum TTL of 1 day 172800 ) ; minimum TTL
; ;
; ;
NS dns1.example.com. @ NS dns1.example.com.
NS dns2.example.com. @ NS dns2.example.com.
dns1 A 10.0.1.1 dns1 A 10.0.1.1
AAAA aaaa:bbbb::1 dns1 AAAA aaaa:bbbb::1
dns2 A 10.0.1.2 dns2 A 10.0.1.2
AAAA aaaa:bbbb::2 dns2 AAAA aaaa:bbbb::2
; ;
; ;
@ MX 10 mail.example.com. @ MX 10 mail.example.com.
MX 20 mail2.example.com. @ MX 20 mail2.example.com.
mail A 10.0.1.5 mail A 10.0.1.5
AAAA aaaa:bbbb::5 mail AAAA aaaa:bbbb::5
mail2 A 10.0.1.6 mail2 A 10.0.1.6
AAAA aaaa:bbbb::6 mail2 AAAA aaaa:bbbb::6
; ;
; ;
; This sample zone file illustrates sharing the same IP addresses for multiple services: @ A 10.0.1.7
; @ AAAA aaaa:bbbb::7
services A 10.0.1.10 services A 10.0.1.10
AAAA aaaa:bbbb::10 services AAAA aaaa:bbbb::10
A 10.0.1.11
AAAA aaaa:bbbb::11
ftp CNAME services.example.com. ftp CNAME services.example.com.
www CNAME services.example.com. www CNAME services.example.com.
``` ```