diff --git a/sisr1/tp02-dns/dns2/interfaces b/sisr1/tp02-dns/dns2/interfaces new file mode 100644 index 0000000..d3632d8 --- /dev/null +++ b/sisr1/tp02-dns/dns2/interfaces @@ -0,0 +1,16 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug enp0s3 +#iface enp0s3 inet dhcp +iface enp0s3 inet static + address 192.168.0.122/24 + gateway 192.168.0.1 + diff --git a/sisr1/tp02-dns/dns2/named.conf.local b/sisr1/tp02-dns/dns2/named.conf.local new file mode 100644 index 0000000..a589c7e --- /dev/null +++ b/sisr1/tp02-dns/dns2/named.conf.local @@ -0,0 +1,15 @@ +// zone directe +zone "sio-tg.lan" { + type slave; + file "/etc/bind/db.sio-tg.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-tg.lan.rev"; + masters { 192.168.0.121; }; +}; diff --git a/sisr1/tp02-dns/dns2/resolv.conf b/sisr1/tp02-dns/dns2/resolv.conf new file mode 100644 index 0000000..9b9afb3 --- /dev/null +++ b/sisr1/tp02-dns/dns2/resolv.conf @@ -0,0 +1,3 @@ +domain sio-tg.lan +search sio-tg.lan +nameserver 127.0.0.1