diff --git a/SCR2.2/TP23.tar b/SCR2.2/TP23.tar new file mode 100644 index 0000000..7017b68 Binary files /dev/null and b/SCR2.2/TP23.tar differ diff --git a/SCR2.2/TP23/ROOT-SERV.db.root.zone b/SCR2.2/TP23/ROOT-SERV.db.root.zone new file mode 100644 index 0000000..4fd55fd --- /dev/null +++ b/SCR2.2/TP23/ROOT-SERV.db.root.zone @@ -0,0 +1,18 @@ +$TTL 3600 +@ IN SOA ROOT-SERV. root. ( + 2025052100 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS ROOT-SERV. + + +ROOT-SERV IN A 90.90.0.10 +mos. IN NS sethi.mos. + IN NS kheops.mos. +80.80.in-addr.arpa. IN NS sethi.mos. + IN NS kheops.mos. +sethi.mos. IN A 80.80.0.20 +kheops.mos. IN A 80.80.0.10 diff --git a/SCR2.2/TP23/ROOT-SERV.named.conf.local b/SCR2.2/TP23/ROOT-SERV.named.conf.local new file mode 100644 index 0000000..bde253f --- /dev/null +++ b/SCR2.2/TP23/ROOT-SERV.named.conf.local @@ -0,0 +1,4 @@ +zone "." { +type master; +file "/etc/bind/db.root.zone"; +}; \ No newline at end of file diff --git a/SCR2.2/TP23/areponses.txt b/SCR2.2/TP23/areponses.txt new file mode 100644 index 0000000..8fb7e3a --- /dev/null +++ b/SCR2.2/TP23/areponses.txt @@ -0,0 +1,128 @@ +Host 10 : +Créez un fichiers hints-file + +3600000 NS ROOT-SERV. +ROOT-SERV. 3600000 A 90.90.0.10. + + +Dans named.conf.default-zones on modifie pour avoir ca : +zone "." { + type hint; + file "/etc/bind/hints-file"; +}; + +sethi: + +Créez un fichier db.mos et mettre : + +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + + +sethi IN A 80.80.0.20 +kheops IN A 80.80.0.10 +host1 IN A 80.80.0.1 +host2 IN A 80.80.0.2 +host3 IN A 80.80.0.3 +host4 IN A 80.80.0.4 +host5 IN A 80.80.0.5 + + +Créer fichier db.mos.inv et mettre : +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + +10.0.80.80.in-addr.arpa IN PTR kheops.mos. +20.0.80.80.in-addr.arpa IN PTR sethi.mos. +1.0.80.80.in-addr.arpa IN PTR host1.mos. +2.0.80.80.in-addr.arpa IN PTR host2.mos. +3.0.80.80.in-addr.arpa IN PTR host3.mos. +4.0.80.80.in-addr.arpa IN PTR host4.mos. +5.0.80.80.in-addr.arpa IN PTR host5.mos. + + +Dans named.conf.local + +zone "mos" { + + type master; + file "/etc/bind/db.mos"; +}; +zone "80.80.in-addr.arpa" { + + type master; + file "/etc/bind/db.mos.inv"; +}; + +Dans host1-5: + +/etc/resolv.conf mettre : + +domain mos +nameserver 80.80.0.20 + +/etc/init.d/bind9 start puis ss -na pour vérifier si le port est ouvert + +Sur host1 faire un ping "nom" pour vérifier si le pc communique +dig -x 80.80.0.10 pour l'inverse + + +ROOT-SERV + +Dans named.conf.local : + +zone "." { +type master; +file "/etc/bind/db.root.zone"; +}; + + +Dans db.root.zone : + +$TTL 3600 +@ IN SOA ROOT-SERV. root. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS ROOT-SERV. + + +ROOT-SERV IN A 90.90.0.10 +mos. IN NS sethi.mos. + IN NS kheops.mos. +80.80.in-addr.arpa. IN NS sethi.mos. + IN NS kheops.mos. +sethi.mos. IN A 80.80.0.20 +kheops.mos. IN A 80.80.0.10 + + + +V.Lancement et tests. + +ROOT-SERV named -g +host10 named -g +sethi named -g +Tous en même temps + +Dans un autre terminal +mettre dig host1.mos si sa ne fonctionne pas (problème de Clé) faire dig +cd host1.mos +pour enlever les problème de clé allez dans le premier host10 (celui qui est en named -g) et faire nano named.conf.options et mettre en commentaire dnssec-validation auto; et refaire named -g +et retesté dans le host10 dig host1.mos et ca devrait fonctionner. +dig +trace host1.mos sert a voir le chemin que fait host10 pour communiquer avec host1 diff --git a/SCR2.2/TP23/areponses.txt~ b/SCR2.2/TP23/areponses.txt~ new file mode 100644 index 0000000..f25eddd --- /dev/null +++ b/SCR2.2/TP23/areponses.txt~ @@ -0,0 +1,126 @@ +Host 10 : +Créez un fichiers hints-file + +3600000 NS ROOT-SERV. +ROOT-SERV. 3600000 A 90.90.0.10. + + +Dans named.conf.default-zones on modifie pour avoir ca : +zone "." { + type hint; + file "/etc/bind/hints-file"; +}; + +sethi: + +Créez un fichier db.mos et mettre : + +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + + +sethi IN A 80.80.0.20 +kheops IN A 80.80.0.10 +host1 IN A 80.80.0.1 +host2 IN A 80.80.0.2 +host3 IN A 80.80.0.3 +host4 IN A 80.80.0.4 +host5 IN A 80.80.0.5 + + +Créer fichier db.mos.inv et mettre : +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + +10.0.80.80.in-addr.arpa IN PTR kheops.mos. +20.0.80.80.in-addr.arpa IN PTR sethi.mos. +1.0.80.80.in-addr.arpa IN PTR host1.mos. +2.0.80.80.in-addr.arpa IN PTR host2.mos. +3.0.80.80.in-addr.arpa IN PTR host3.mos. +4.0.80.80.in-addr.arpa IN PTR host4.mos. +5.0.80.80.in-addr.arpa IN PTR host5.mos. + + +Dans named.conf.local + +zone "mos" { + + type master; + file "/etc/bind/db.mos"; +}; +zone "80.80.in-addr.arpa" { + + type master; + file "/etc/bind/db.mos.inv"; +}; + +/etc/resolv.conf mettre : + +domain mos +nameserver 80.80.0.20 + +/etc/init.d/bind9 start puis ss -na pour vérifier si le port est ouvert + +Sur host1 faire un ping "nom" pour vérifier si le pc communique +dig -x 80.80.0.10 pour l'inverse + + +ROOT-SERV + +Dans named.conf.local : + +zone "." { +type master; +file "/etc/bind/db.root.zone"; +}; + + +Dans db.root.zone : + +$TTL 3600 +@ IN SOA ROOT-SERV. root. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS ROOT-SERV. + + +ROOT-SERV IN A 90.90.0.10 +mos. IN NS sethi.mos. + IN NS kheops.mos. +80.80.in-addr.arpa. IN NS sethi.mos. + IN NS kheops.mos. +sethi.mos. IN A 80.80.0.20 +kheops.mos. IN A 80.80.0.10 + + + +V.Lancement et tests. + +ROOT-SERV named -g +host10 named -g +sethi named -g +Tous en même temps + +Dans un autre terminal +mettre dig host1.mos si sa ne fonctionne pas (problème de Clé) faire dig +cd host1.mos +pour enlever les problème de clé allez dans le premier host10 (celui qui est en named -g) et faire nano named.conf.options et mettre en commentaire dnssec-validation auto; et refaire named -g +et retesté dans le host10 dig host1.mos et ca devrait fonctionner. +dig +trace host1.mos sert a voir le chemin que fait host10 pour communiquer avec host1 diff --git a/SCR2.2/TP23/dns2.imn b/SCR2.2/TP23/dns2.imn new file mode 100644 index 0000000..1e00766 --- /dev/null +++ b/SCR2.2/TP23/dns2.imn @@ -0,0 +1,518 @@ +node n0 { + type lanswitch + network-config { + hostname switch1 + ! + } + canvas c0 + iconcoords {144 240} + labelcoords {141 208} + interface-peer {e0 n6} + interface-peer {e1 n2} + interface-peer {e2 n3} + interface-peer {e3 n4} + interface-peer {e4 n5} + interface-peer {e5 n8} + interface-peer {e6 n9} + interface-peer {e7 n16} +} + +node n1 { + type lanswitch + network-config { + hostname switch2 + ! + } + canvas c0 + iconcoords {408 48} + labelcoords {407 26} + interface-peer {e0 n6} + interface-peer {e1 n7} +} + +node n2 { + type host + network-config { + hostname host1 + ! + interface eth0 + mac address 42:00:aa:00:00:07 + ip address 80.80.0.1/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {48 432} + labelcoords {48 468} + interface-peer {eth0 n0} +} + +node n3 { + type host + network-config { + hostname host2 + ! + interface eth0 + mac address 42:00:aa:00:00:08 + ip address 80.80.0.2/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {168 504} + labelcoords {168 540} + interface-peer {eth0 n0} +} + +node n4 { + type host + network-config { + hostname host3 + ! + interface eth0 + mac address 42:00:aa:00:00:09 + ip address 80.80.0.3/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {240 408} + labelcoords {240 444} + interface-peer {eth0 n0} +} + +node n5 { + type host + network-config { + hostname host4 + ! + interface eth0 + mac address 42:00:aa:00:00:0a + ip address 80.80.0.4/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {312 336} + labelcoords {312 372} + interface-peer {eth0 n0} +} + +node n6 { + type router + model quagga + network-config { + hostname router1 + ! + interface eth1 + mac address 42:00:aa:00:00:01 + ip address 80.88.0.254/13 + ! + interface eth0 + mac address 42:00:aa:00:00:00 + ip address 80.80.0.254/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + router rip + redistribute static + redistribute connected + redistribute ospf + network 0.0.0.0/0 + ! + router ripng + redistribute static + redistribute connected + redistribute ospf6 + network ::/0 + ! + } + canvas c0 + iconcoords {192 48} + labelcoords {192 15} + interface-peer {eth0 n0} + interface-peer {eth1 n1} +} + +node n7 { + type router + model quagga + network-config { + hostname router2 + ! + interface eth1 + mac address 42:00:aa:00:00:03 + ip address 90.90.0.253/15 + ! + interface eth0 + mac address 42:00:aa:00:00:02 + ip address 80.88.0.253/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + router rip + redistribute static + redistribute connected + redistribute ospf + network 0.0.0.0/0 + ! + router ripng + redistribute static + redistribute connected + redistribute ospf6 + network ::/0 + ! + } + canvas c0 + iconcoords {576 168} + labelcoords {573 137} + interface-peer {eth0 n1} + interface-peer {eth1 n13} +} + +node n8 { + type host + network-config { + hostname host5 + ! + interface eth0 + mac address 42:00:aa:00:00:0b + ip address 80.80.0.5/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ipv6 route ::/0 fc00:1::1 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {432 264} + labelcoords {432 300} + interface-peer {eth0 n0} +} + +node n11 { + type router + model quagga + network-config { + hostname router3 + ! + interface eth1 + mac address 42:00:aa:00:00:05 + ip address 100.100.0.254/14 + ! + interface eth0 + mac address 42:00:aa:00:00:04 + ip address 90.90.0.254/15 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + router rip + redistribute static + redistribute connected + redistribute ospf + network 0.0.0.0/0 + ! + router ripng + redistribute static + redistribute connected + redistribute ospf6 + network ::/0 + ! + } + canvas c0 + iconcoords {696 264} + labelcoords {654 238} + interface-peer {eth0 n13} + interface-peer {eth1 n14} +} + +node n12 { + type router + model quagga + network-config { + hostname router4 + ! + interface eth0 + mac address 42:00:aa:00:00:06 + ip address 100.100.0.253/14 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + router rip + redistribute static + redistribute connected + redistribute ospf + network 0.0.0.0/0 + ! + router ripng + redistribute static + redistribute connected + redistribute ospf6 + network ::/0 + ! + } + canvas c0 + iconcoords {456 528} + labelcoords {456 553} + interface-peer {eth0 n14} +} + +node n13 { + type lanswitch + network-config { + hostname switch3 + ! + } + canvas c0 + iconcoords {840 72} + labelcoords {831 41} + interface-peer {e0 n7} + interface-peer {e1 n11} + interface-peer {e2 n10} +} + +node n14 { + type lanswitch + network-config { + hostname switch4 + ! + } + canvas c0 + iconcoords {792 504} + labelcoords {792 527} + interface-peer {e0 n11} + interface-peer {e1 n12} + interface-peer {e2 n15} +} + +node n9 { + type host + network-config { + hostname kheops + ! + interface eth0 + ip address 80.80.0.10/13 + mac address 42:00:aa:00:00:0c + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {48 72} + labelcoords {35 29} + interface-peer {eth0 n0} +} + +node n10 { + type host + network-config { + hostname ROOT-SERV + ! + interface eth0 + ip address 90.90.0.10/15 + mac address 42:00:aa:00:00:0d + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 90.90.0.253 + ! + } + canvas c0 + iconcoords {624 48} + labelcoords {562 31} + interface-peer {eth0 n13} +} + +node n15 { + type host + network-config { + hostname host10 + ! + interface eth0 + ip address 100.100.0.10/14 + mac address 42:00:aa:00:00:0e + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 100.100.0.254 + ! + } + canvas c0 + iconcoords {600 408} + labelcoords {562 372} + interface-peer {eth0 n14} +} + +node n16 { + type host + network-config { + hostname sethi + ! + interface eth0 + mac address 42:00:aa:00:00:0f + ip address 80.80.0.20/13 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 80.80.0.254 + ! + } + canvas c0 + iconcoords {360 144} + labelcoords {313 120} + interface-peer {eth0 n0} +} + +link l0 { + nodes {n6 n0} + bandwidth 0 +} + +link l1 { + nodes {n1 n6} + bandwidth 0 +} + +link l2 { + nodes {n1 n7} + bandwidth 0 +} + +link l3 { + nodes {n13 n7} + bandwidth 0 +} + +link l4 { + nodes {n13 n11} + bandwidth 0 +} + +link l5 { + nodes {n14 n11} + bandwidth 0 +} + +link l6 { + nodes {n14 n12} + bandwidth 0 +} + +link l7 { + nodes {n0 n2} + bandwidth 0 +} + +link l8 { + nodes {n0 n3} + bandwidth 0 +} + +link l9 { + nodes {n0 n4} + bandwidth 0 +} + +link l10 { + nodes {n0 n5} + bandwidth 0 +} + +link l11 { + nodes {n0 n8} + bandwidth 0 +} + +link l12 { + nodes {n9 n0} + bandwidth 0 +} + +link l13 { + nodes {n13 n10} + bandwidth 0 +} + +link l14 { + nodes {n14 n15} + bandwidth 0 +} + +link l15 { + nodes {n16 n0} + bandwidth 0 +} + +canvas c0 { + name {Canvas0} +} + +option show { + interface_names yes + ip_addresses yes + ipv6_addresses yes + node_labels yes + link_labels yes + background_images no + annotations yes + hostsAutoAssign no + grid yes + iconSize normal + zoom 1.0 +} + diff --git a/SCR2.2/TP23/host.resolv.conf b/SCR2.2/TP23/host.resolv.conf new file mode 100644 index 0000000..20c4422 --- /dev/null +++ b/SCR2.2/TP23/host.resolv.conf @@ -0,0 +1,2 @@ +domain mos +nameserver 80.80.0.20 \ No newline at end of file diff --git a/SCR2.2/TP23/host.resolv.conf~ b/SCR2.2/TP23/host.resolv.conf~ new file mode 100644 index 0000000..fb5a3b2 --- /dev/null +++ b/SCR2.2/TP23/host.resolv.conf~ @@ -0,0 +1,2 @@ +nameserver 80.80.0.20 +search sethi \ No newline at end of file diff --git a/SCR2.2/TP23/host10.hints-file b/SCR2.2/TP23/host10.hints-file new file mode 100644 index 0000000..4fad789 --- /dev/null +++ b/SCR2.2/TP23/host10.hints-file @@ -0,0 +1,2 @@ +3600000 NS ROOT-SERV. +ROOT-SERV. 3600000 A 90.90.0.10. \ No newline at end of file diff --git a/SCR2.2/TP23/host10.named.conf.default-zones b/SCR2.2/TP23/host10.named.conf.default-zones new file mode 100644 index 0000000..bf142c7 --- /dev/null +++ b/SCR2.2/TP23/host10.named.conf.default-zones @@ -0,0 +1,4 @@ +zone "." { + type hint; + file "/etc/bind/hints-file"; +}; \ No newline at end of file diff --git a/SCR2.2/TP23/reponses.txt~ b/SCR2.2/TP23/reponses.txt~ new file mode 100644 index 0000000..58de517 --- /dev/null +++ b/SCR2.2/TP23/reponses.txt~ @@ -0,0 +1,111 @@ +Host 10 : +Créez un fichiers hints-file + +3600000 NS ROOT-SERV. +ROOT-SERV. 3600000 A 90.90.0.10. + + +Dans named.conf.default-zones on modifie pour avoir ca : +zone "." { + type hint; + file "/etc/bind/hints-file"; +}; + +sethi: + +Créez un fichier db.mos et mettre : + +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + + +sethi IN A 80.80.0.20 +kheops IN A 80.80.0.10 +host1 IN A 80.80.0.1 +host2 IN A 80.80.0.2 +host3 IN A 80.80.0.3 +host4 IN A 80.80.0.4 +host5 IN A 80.80.0.5 + + +Créer fichier db.mos.inv et mettre : +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + +10.0.80.80.in-addr.arpa IN PTR kheops.mos. +20.0.80.80.in-addr.arpa IN PTR sethi.mos. +1.0.80.80.in-addr.arpa IN PTR host1.mos. +2.0.80.80.in-addr.arpa IN PTR host2.mos. +3.0.80.80.in-addr.arpa IN PTR host3.mos. +4.0.80.80.in-addr.arpa IN PTR host4.mos. +5.0.80.80.in-addr.arpa IN PTR host5.mos. + + +Dans named.conf.local + +zone "mos" { + + type master; + file "/etc/bind/db.mos"; +}; +zone "80.80.in-addr.arpa" { + + type master; + file "/etc/bind/db.mos.inv"; +}; + +/etc/resolv.conf mettre : + +domain mos +nameserver 80.80.0.20 + +/etc/init.d/bind9 start puis ss -na pour vérifier si le port est ouvert + +Sur host1 faire un ping "nom" pour vérifier si le pc communique +dig -x 80.80.0.10 pour l'inverse + + +ROOT-SERV + +Dans named.conf.local : + +zone "." { +type master; +file "/etc/bind/db.root.zone"; +}; + + +Dans db.root.zone : + +$TTL 3600 +@ IN SOA ROOT-SERV. root. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS ROOT-SERV. + + +ROOT-SERV IN A 90.90.0.10 +mos. IN NS sethi.mos. + IN NS kheops.mos. +80.80.in-addr.arpa. IN NS sethi.mos. + IN NS kheops.mos. +sethi.mos. IN A 80.80.0.20 +kheops.mos. IN A 80.80.0.10 diff --git a/SCR2.2/TP23/scr_réponses.txt~ b/SCR2.2/TP23/scr_réponses.txt~ new file mode 100644 index 0000000..889fa4b --- /dev/null +++ b/SCR2.2/TP23/scr_réponses.txt~ @@ -0,0 +1,100 @@ +zone "." { + type hint; + file "/etc/bind/hints-file"; +}; +pour la b.1) mettre dans le fichier named.conf.default-zoneszone +a.1) creer fichier hints-file +3600000 NS ROOT-SERV. +ROOT-SERV. 3600000 A 90.90.0.10. + + +2) Créér fichier db.mos et mettre +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + + +sethi IN A 80.80.0.20 +kheops IN A 80.80.0.10 +host1 IN A 80.80.0.1 +host2 IN A 80.80.0.2 +host3 IN A 80.80.0.3 +host4 IN A 80.80.0.4 +host5 IN A 80.80.0.5 + + + +Créer fichier db.mos.inv et mettre : + +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + +10.0 IN PTR kheops.mos. +20.0 IN PTR sethi.mos. +1.0 IN PTR host1.mos. +2.0 IN PTR host2.mos. +3.0 IN PTR host3.mos. +4.0 IN PTR host4.mos. +5.0 IN PTR host5.mos. +Dans named.conf.local est mettre : permet de vérifier les deux db + +zone "mos" { + + type master; + file "/etc/bind/db.mos"; +}; +zone "80.80.in-addr.arpa" { + + type master; + file "/etc/bind/db.mos.inv"; +}; +/etc/resolv.conf mettre : + +domain mos +nameserver 80.80.0.20 +Dans sethi : +/etc/init.d/bind9 start + puis ss -na pour vérifier si le port est ouvert + + +Sur host1 faire un ping "nom" pour vérifier si le pc communique +dig -x 80.80.0.10 pour l'inverse + + +ROOT-SERV : +1) named.conf.local : +zone "." { +type master; +file "/etc/bind/db.root.zone"; +}; +2) db.root.zone : +$TTL 3600 +@ IN SOA ROOT-SERV. root. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS ROOT-SERV. + + +ROOT-SERV IN A 90.90.0.10 +mos. IN NS sethi.mos. + IN NS kheops.mos. +80.80.in-addr.arpa. IN NS sethi.mos. + IN NS kheops.mos. +sethi.mos. IN A 80.80.0.20 +kheops.mos. IN A 80.80.0.10 diff --git a/SCR2.2/TP23/sethi.db.mos.inv.txt b/SCR2.2/TP23/sethi.db.mos.inv.txt new file mode 100644 index 0000000..6fbd705 --- /dev/null +++ b/SCR2.2/TP23/sethi.db.mos.inv.txt @@ -0,0 +1,17 @@ +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + +10.0.80.80.in-addr.arpa IN PTR kheops.mos. +20.0.80.80.in-addr.arpa IN PTR sethi.mos. +1.0.80.80.in-addr.arpa IN PTR host1.mos. +2.0.80.80.in-addr.arpa IN PTR host2.mos. +3.0.80.80.in-addr.arpa IN PTR host3.mos. +4.0.80.80.in-addr.arpa IN PTR host4.mos. +5.0.80.80.in-addr.arpa IN PTR host5.mos. \ No newline at end of file diff --git a/SCR2.2/TP23/sethi.db.mos.txt b/SCR2.2/TP23/sethi.db.mos.txt new file mode 100644 index 0000000..934c4b9 --- /dev/null +++ b/SCR2.2/TP23/sethi.db.mos.txt @@ -0,0 +1,18 @@ +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + + +sethi IN A 80.80.0.20 +kheops IN A 80.80.0.10 +host1 IN A 80.80.0.1 +host2 IN A 80.80.0.2 +host3 IN A 80.80.0.3 +host4 IN A 80.80.0.4 +host5 IN A 80.80.0.5 \ No newline at end of file diff --git a/SCR2.2/TP23/sethi.named.conf.local b/SCR2.2/TP23/sethi.named.conf.local new file mode 100644 index 0000000..ccdf78b --- /dev/null +++ b/SCR2.2/TP23/sethi.named.conf.local @@ -0,0 +1,10 @@ +zone "mos" { + + type master; + file "/etc/bind/db.mos"; +}; +zone "80.80.in-addr.arpa" { + + type master; + file "/etc/bind/db.mos.inv"; +}; \ No newline at end of file diff --git a/SCR2.2/TP23/solar-5-mos.zone.tar b/SCR2.2/TP23/solar-5-mos.zone.tar new file mode 100644 index 0000000..dcb0176 Binary files /dev/null and b/SCR2.2/TP23/solar-5-mos.zone.tar differ diff --git a/SCR2.2/TP23/solar-5-tp23/sethi.db.mos b/SCR2.2/TP23/solar-5-tp23/sethi.db.mos new file mode 100644 index 0000000..934c4b9 --- /dev/null +++ b/SCR2.2/TP23/solar-5-tp23/sethi.db.mos @@ -0,0 +1,18 @@ +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + + +sethi IN A 80.80.0.20 +kheops IN A 80.80.0.10 +host1 IN A 80.80.0.1 +host2 IN A 80.80.0.2 +host3 IN A 80.80.0.3 +host4 IN A 80.80.0.4 +host5 IN A 80.80.0.5 \ No newline at end of file diff --git a/SCR2.2/TP23/solar-5-tp23/sethi.db.mos.inv b/SCR2.2/TP23/solar-5-tp23/sethi.db.mos.inv new file mode 100644 index 0000000..6fbd705 --- /dev/null +++ b/SCR2.2/TP23/solar-5-tp23/sethi.db.mos.inv @@ -0,0 +1,17 @@ +$TTL 3600 +@ IN SOA sethi.mos. root.mos. ( + 2007010401 ; Serial + 3600 ; Refresh [1h] + 600 ; Retry [10m] + 86400 ; Expire [1d] + 600 ) ; Negative Cache TTL [1h] +; +@ IN NS sethi.mos. + +10.0.80.80.in-addr.arpa IN PTR kheops.mos. +20.0.80.80.in-addr.arpa IN PTR sethi.mos. +1.0.80.80.in-addr.arpa IN PTR host1.mos. +2.0.80.80.in-addr.arpa IN PTR host2.mos. +3.0.80.80.in-addr.arpa IN PTR host3.mos. +4.0.80.80.in-addr.arpa IN PTR host4.mos. +5.0.80.80.in-addr.arpa IN PTR host5.mos. \ No newline at end of file diff --git a/SCR2.2/TP23/solar-5-tp23/sethi.named.conf.local b/SCR2.2/TP23/solar-5-tp23/sethi.named.conf.local new file mode 100644 index 0000000..ccdf78b --- /dev/null +++ b/SCR2.2/TP23/solar-5-tp23/sethi.named.conf.local @@ -0,0 +1,10 @@ +zone "mos" { + + type master; + file "/etc/bind/db.mos"; +}; +zone "80.80.in-addr.arpa" { + + type master; + file "/etc/bind/db.mos.inv"; +}; \ No newline at end of file diff --git a/SCR2.2/TP23/tp23.SCR.2.2.pdf b/SCR2.2/TP23/tp23.SCR.2.2.pdf new file mode 100644 index 0000000..4d4fca0 Binary files /dev/null and b/SCR2.2/TP23/tp23.SCR.2.2.pdf differ