diff --git a/sisr1/tp02-dns/dns2/db.sio-ra.lan b/sisr1/tp02-dns/dns2/db.sio-ra.lan new file mode 100644 index 0000000..ce37d79 --- /dev/null +++ b/sisr1/tp02-dns/dns2/db.sio-ra.lan @@ -0,0 +1,20 @@ +$ORIGIN . +$TTL 604800 ; 1 week +sio-ra.lan IN SOA dns1-ra.sio-ra.lan. root.dns1-ra.sio-ra.lan. ( + 2 ; serial + 604800 ; refresh (1 week) + 86400 ; retry (1 day) + 2419200 ; expire (4 weeks) + 604800 ; minimum (1 week) + ) + NS dns1-ra.sio-ra.lan. + NS dns2-ra.sio-ra.lan. + A 127.0.0.1 +$ORIGIN sio-ra.lan. +0.168.192.in-addr.arpa PTR dns1-ra.sio.lan. +deb-dhcp-ra A 192.168.0.120 +dhcp CNAME deb-dhcp-ra +dns1 CNAME dns1-ra +dns1-ra A 192.168.0.121 +dns2 CNAME dns2-ra +dns2-ra A 192.168.0.122 diff --git a/sisr1/tp02-dns/dns2/db.sio-ra.lan.rev b/sisr1/tp02-dns/dns2/db.sio-ra.lan.rev new file mode 100644 index 0000000..eb2c9c9 Binary files /dev/null and b/sisr1/tp02-dns/dns2/db.sio-ra.lan.rev differ diff --git a/sisr1/tp02-dns/dns2/named.conf b/sisr1/tp02-dns/dns2/named.conf new file mode 100644 index 0000000..bc71baa --- /dev/null +++ b/sisr1/tp02-dns/dns2/named.conf @@ -0,0 +1,11 @@ +// This is the primary configuration file for the BIND DNS server named. +// +// Please read /usr/share/doc/bind9/README.Debian for information on the +// structure of BIND configuration files in Debian, *BEFORE* you customize +// this configuration file. +// +// If you are just adding zones, please do that in /etc/bind/named.conf.local + +include "/etc/bind/named.conf.options"; +include "/etc/bind/named.conf.local"; +include "/etc/bind/named.conf.default-zones"; diff --git a/sisr1/tp02-dns/dns2/named.conf.local b/sisr1/tp02-dns/dns2/named.conf.local new file mode 100644 index 0000000..2f2fa79 --- /dev/null +++ b/sisr1/tp02-dns/dns2/named.conf.local @@ -0,0 +1,23 @@ +// +// Do any local configuration here +// zone directe +zone "sio-ra.lan" { + type slave; + file "/etc/bind/db.sio-ra.lan"; + masters { 192.168.0.121; }; + masterfile-format text; +}; + +// zone inverse +zone "0.168.192.in-addr.arpa" { + type slave; + notify no; + file "/etc/bind/db.sio-ra.lan.rev"; + masters { 192.168.0.121; }; +}; + +// Consider adding the 1918 zones here, if they are not used in your +// organization +//include "/etc/bind/zones.rfc1918"; + + diff --git a/sisr1/tp02-dns/dns2/resolv.conf b/sisr1/tp02-dns/dns2/resolv.conf new file mode 100644 index 0000000..e11c6ca --- /dev/null +++ b/sisr1/tp02-dns/dns2/resolv.conf @@ -0,0 +1,4 @@ +domain sio-ra.lan +search sio-ra.lan +nameserver 127.0.0.1 +nameserver 10.121.38.8