Créer le fichier /etc/bind/db.monreseau.local
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.monreseau.local. root.monreseau.local. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
sebastien IN A 172.16.42.5
eric IN A 172.16.42.4
Éditer le fichier /etc/bind/named.conf.local
et ajouter
zone "swc.local" { type master; file "/etc/bind/db.monreseau.local"; };
Éditer le fichier /etc/bind/named.conf.options
options { directory "/var/cache/bind";
#// forwarders { #// 0.0.0.0; #// };
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; listen-on { any; }; allow-recursion { any; }; };
Ouvrir les ports 1023 et 53 au cas où.