diff --git a/sisr1/tp03-reseau-prive/srv-service/dns/db.monlabo.lan b/sisr1/tp03-reseau-prive/srv-service/dns/db.monlabo.lan new file mode 100644 index 0000000..cc921f7 --- /dev/null +++ b/sisr1/tp03-reseau-prive/srv-service/dns/db.monlabo.lan @@ -0,0 +1,34 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA srv-service.monlabo.lan. root.srv-service.monlabo.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS srv-service.monlabo.lan. +@ IN NS srv-dns2.monlabo.lan. +@ IN A 127.0.0.1 + +srv-service.monlabo.lan. IN A 172.16.0.1 +srv-dns2.monlabo.lan. IN A 172.16.0.2 +srv-admin-ra.monlabo.lan. IN A 172.16.0.254 + +0.16.172.in-addr.arpa PTR srv-service.monlabo.lan. + +srvdns cname srv-service.monlabo.lan. +srvdns1 cname srv-service.monlabo.lan. +dns cname srv-service.monlabo.lan. +dns1 cname srv-service.monlabo.lan. +srvdhcp cname srv-service.monlabo.lan. +dhcp cname srv-service.monlabo.lan. + +srvadmin cname srv-admin-ra.monlabo.lan. +router cname srv-admin-ra.monlabo.lan. +gateway cname srv-admin-ra.monlabo.lan. + +dns2 cname srv-dns2.monlabo.lan. +svrdns2 cname srv-dns2.monlabo.lan. diff --git a/sisr1/tp03-reseau-prive/srv-service/dns/db.monlabo.lan.rev b/sisr1/tp03-reseau-prive/srv-service/dns/db.monlabo.lan.rev new file mode 100644 index 0000000..4712ae2 --- /dev/null +++ b/sisr1/tp03-reseau-prive/srv-service/dns/db.monlabo.lan.rev @@ -0,0 +1,20 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA srv-service.monlabo.lan. root.srv-service.monlabo.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS srv-service.monlabo.lan. + NS srv-dns2.monlabo.lan. +@ IN A 127.0.0.1 + +; +1 IN PTR srv-service.monlabo.lan. +2 IN PTR srv-dns2.monlabo.lan. +254 IN PTR srv-admin-ra.monlabo.lan. +; diff --git a/sisr1/tp03-reseau-prive/srv-service/dns/named.conf.local b/sisr1/tp03-reseau-prive/srv-service/dns/named.conf.local new file mode 100644 index 0000000..861def4 --- /dev/null +++ b/sisr1/tp03-reseau-prive/srv-service/dns/named.conf.local @@ -0,0 +1,19 @@ +// +// Do any local configuration here +//zone direct +zone "monlabo.lan" { + type master; + file "/etc/bind/db.monlabo.lan"; +}; + +//zone inverse +zone "0.16.172.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.monlabo.lan.rev"; +}; + +// Consider adding the 1918 zones here, if they are not used in your +// organization +//include "/etc/bind/zones.rfc1918"; + diff --git a/sisr1/tp03-reseau-prive/srv-service/dns/resolv.conf b/sisr1/tp03-reseau-prive/srv-service/dns/resolv.conf new file mode 100644 index 0000000..3e24359 --- /dev/null +++ b/sisr1/tp03-reseau-prive/srv-service/dns/resolv.conf @@ -0,0 +1,4 @@ +domain monlabo.lan +search monlabo.lan +nameserver 127.0.0.1 +nameserver 10.121.38.8