New Zone
Configure new Zone
Edit the named.conf.local file to add zone called mi.hdm-stuttgart.de
vim /etc/bind/named.conf.local
Zone Configuration
zone "sdi1.mi.hdm-stuttgart.de" {
type master;
file "/etc/bind/db.mi.hdm-stuttgart.de";
};
zone "75.62.141.in-addr.arpa." {
type master;
file "/etc/bind/db.141_62_75";
};
Add Zone File
Create db.mi.hdm-stuttgart.de Zone file from template and edit it
cp /etc/bind/db.empty /etc/bind/db.mi.hdm-stuttgart.de
vim /etc/bind/db.mi.hdm-stuttgart.de
Add the following content to this file
; BIND reverse data file for empty rfc1918 zone
;
; DO NOT EDIT THIS FILE - it is used for multiple zones.
; Instead, copy it, edit named.conf, and use that copy.
;
$TTL 86400
@ IN SOA ns.sdi1.mi.hdm-stuttgart.de. hostmaster.mi.hdm-stuttgart.de. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS ns.sdi1.mi.hdm-stuttgart.de.
@ IN A 141.62.75.101
@ IN MX 10 mx1.hdm-stuttgart.de.
; A records
www IN A 141.62.75.101
ns.sdi1.mi.hdm-stuttgart.de. IN A 141.62.75.101
sdi01a.sdi1.mi.hdm-stuttgart.de. IN A 141.62.75.101
sdi01b.sdi1.mi.hdm-stuttgart.de. IN A 141.62.75.115
; CNAME records
www1 IN CNAME www
www1-2 IN CNAME www
Zone File Vocab
| Record | Meaning |
|---|---|
| A | (Address) Maps Domain to IPv4 Adress |
| CNAME | (Canonical Name) Points to other Domain |
Now also create /etc/bind/db.141_62_75 and add this content to it.
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.sdi1.mi.hdm-stuttgart.de. hostmaster.mi.hdm-stuttgart.de. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.sdi1.mi.hdm-stuttgart.de.
101 IN PTR sdi01a.sdi1.mi.hdm-stuttgart.de.
115 IN PTR sdi01b.sdi1.mi.hdm-stuttgart.de.
Enable IPv4
Edit /etc/default/named and add this content
RESOLVCONF=no
# startup options for the server
OPTIONS="-4 -u bind"
Restart Bind
systemctl restart bind9