Compare commits

..

13 Commits

Author SHA1 Message Date
dc8c0ec55e script tp04 2025-02-20 13:23:13 +01:00
3800141d22 ajout d'un script createGroup 2025-02-17 11:54:53 +01:00
e844ac0334 ajout de fichier Readme 2025-02-17 09:45:56 +01:00
redouane.assani
1626c44991 ajout des fichier du srv-dns2 2025-02-17 09:38:27 +01:00
redouane.assani
cab03bf3d2 dns 2025-02-17 09:31:51 +01:00
root
fa8a72803b ajout des ficier dns 2025-02-17 09:27:29 +01:00
root
03604694f6 ajout des fichier de config dhcp 2025-02-17 09:23:12 +01:00
root
15f6fc34df copie du script nat.sh 2025-02-17 09:08:31 +01:00
root
795840d426 ajout des fichier dans tp03 2025-02-13 14:46:06 +01:00
redouane.assani
e157d1179a fichier dhcpd.conf 2025-02-03 11:14:05 +01:00
root
068f919671 ajout des fichier du dns1 2025-02-03 10:58:46 +01:00
root
194c4fa293 fichier du dns2 2025-02-03 10:51:53 +01:00
a5d1b749e2 ajout de la plage d'adresse a readme 2025-01-27 09:04:57 +01:00
28 changed files with 653 additions and 2 deletions

View File

@@ -3,3 +3,5 @@
Dépôt de suivi des fichiers de configuration réalisés au cours du BTS SIO Dépôt de suivi des fichiers de configuration réalisés au cours du BTS SIO
**sisr1** : enseignement SISR, première année **sisr1** : enseignement SISR, première année
Ma plage d'adresse disponible pour mes machine 192.168.0.120 à 192.168.0.139

View File

@@ -10,3 +10,9 @@ Travaux pratiques de première année : option SISR
* configuration de serveurs DNS primaires et secondaires * configuration de serveurs DNS primaires et secondaires
* configuration du service DHCP pour utiliser ces DNS * configuration du service DHCP pour utiliser ces DNS
* automatisation du lancement du script NAT * automatisation du lancement du script NAT
**- tp03-reseau-prive** :
* Construction d'un reséaux interne virtuelle
* Configuration de serveurs DNS Primaires et secondaires
* automatisation du lacement du script NAT
* Configuration du service DHCP pour utiliser ces DNS

View File

@@ -0,0 +1,30 @@
Ermengarde,Berthelmot,eberthelmot0@webmd.com,Female,Accountant,
Kassi,Bunker,kbunker1@xinhuanet.com,Female,Production,
Moises,McCallum,mmccallum2@i2i.jp,Male,Production,
Patrizio,Lune,plune3@upenn.edu,Male,Accountant,
Blanch,Everix,beverix4@php.net,Female,Accountant,
Stafani,Kibbel,skibbel5@marriott.com,Female,Production,
Ignacius,Mosdell,imosdell6@cloudflare.com,Male,Management,
Jeana,Waller-Bridge,jwallerbridge7@mapy.cz,Female,Management,
Elroy,Dressel,edressel8@opera.com,Male,Production,
Thea,Strettell,tstrettell9@nature.com,Female,Production,
Solomon,Insoll,sinsolla@utexas.edu,Male,Accountant,
Carri,Feedome,cfeedomeb@ask.com,Female,Accountant,
Padraic,Chetwind,pchetwindc@last.fm,Male,Management,
Solly,D'Ugo,sdugod@uiuc.edu,Male,Production,
Konstanze,MacCostigan,kmaccostigane@seattletimes.com,Female,Accountant,
Roxane,Powlesland,rpowleslandf@pcworld.com,Female,Management,
Orelle,Kennealy,okennealyg@arstechnica.com,Female,Production,
Sukey,Soitoux,ssoitouxh@shinystat.com,Female,Production,
Nelli,Syce,nsycei@blogger.com,Female,Production,
Clarisse,Shillam,cshillamj@dailymotion.com,Female,Production,
Carin,Gueny,cguenyk@naver.com,Female,Management,
Donny,Riepel,driepell@addtoany.com,Male,Production,
Daniella,Ralfe,dralfem@wunderground.com,Female,Production,
Lexy,Clynmans,lclynmansn@furl.net,Female,Production,
Gardiner,Adamthwaite,gadamthwaiteo@spotify.com,Male,Production,
Woodman,Lippett,wlippettp@purevolume.com,Male,Production,
Nadya,Munnion,nmunnionq@flavors.me,Female,Production,
Llewellyn,Habershon,lhabershonr@alibaba.com,Male,Production,
Isaak,Greatrex,igreatrexs@seesaa.net,Male,Production,
Darill,Frostdyke,dfrostdyket@cafepress.com,Male,Production,
1 Ermengarde Berthelmot eberthelmot0@webmd.com Female Accountant
2 Kassi Bunker kbunker1@xinhuanet.com Female Production
3 Moises McCallum mmccallum2@i2i.jp Male Production
4 Patrizio Lune plune3@upenn.edu Male Accountant
5 Blanch Everix beverix4@php.net Female Accountant
6 Stafani Kibbel skibbel5@marriott.com Female Production
7 Ignacius Mosdell imosdell6@cloudflare.com Male Management
8 Jeana Waller-Bridge jwallerbridge7@mapy.cz Female Management
9 Elroy Dressel edressel8@opera.com Male Production
10 Thea Strettell tstrettell9@nature.com Female Production
11 Solomon Insoll sinsolla@utexas.edu Male Accountant
12 Carri Feedome cfeedomeb@ask.com Female Accountant
13 Padraic Chetwind pchetwindc@last.fm Male Management
14 Solly D'Ugo sdugod@uiuc.edu Male Production
15 Konstanze MacCostigan kmaccostigane@seattletimes.com Female Accountant
16 Roxane Powlesland rpowleslandf@pcworld.com Female Management
17 Orelle Kennealy okennealyg@arstechnica.com Female Production
18 Sukey Soitoux ssoitouxh@shinystat.com Female Production
19 Nelli Syce nsycei@blogger.com Female Production
20 Clarisse Shillam cshillamj@dailymotion.com Female Production
21 Carin Gueny cguenyk@naver.com Female Management
22 Donny Riepel driepell@addtoany.com Male Production
23 Daniella Ralfe dralfem@wunderground.com Female Production
24 Lexy Clynmans lclynmansn@furl.net Female Production
25 Gardiner Adamthwaite gadamthwaiteo@spotify.com Male Production
26 Woodman Lippett wlippettp@purevolume.com Male Production
27 Nadya Munnion nmunnionq@flavors.me Female Production
28 Llewellyn Habershon lhabershonr@alibaba.com Male Production
29 Isaak Greatrex igreatrexs@seesaa.net Male Production
30 Darill Frostdyke dfrostdyket@cafepress.com Male Production

View File

@@ -0,0 +1,31 @@
#!/bin/bash
file='./Users.csv'
while read ligne
do
# A chaque itération, stocker le métier dans $metier
metier=$(echo $ligne | cut -d "," -f5)
# On regarde si les group existe
# tail /etc/group
# Vérification de la présence du groupe Accountant -> ajout de la fonction "Accountant" à $groups
if [[ $(echo $ligne | grep "Accountant") == "" ]] ; then
groupadd accountant
fi
# Vérification de la présence du groupe Management -> ajout de la fonction "Management" à $groups
if [[ $(echo $ligne | grep "Management") == "" ]] ; then
groupadd management
fi
# Vérification de la présence du groupe Production -> ajout de la fonction "Production" à $groups
if [[ $(echo $ligne | grep "Production") == "" ]] ; then
groupadd production
fi
# On regarde si les groups ont été créé
# tail /etc/group
# echo $metier
done < $file

View File

@@ -0,0 +1,30 @@
#!/bin/bash
# Fichier d'entrée contenant les informations des utilisateurs
input_file="users.csv"
# Fichier de sortie contenant les logins générés
output_file="logins.csv"
# Fonction pour générer un mot de passe aléatoire
generate_password() {
# Générer un mot de passe aléatoire de 8 caractères alphanumériques
# Utilise /dev/urandom et tr pour choisir uniquement des caractères alphanumériques
< /dev/urandom tr -dc 'A-Za-z0-9' | head -c 8
}
# Créer un fichier de sortie et ajouter l'en-tête
echo "Nom d'utilisateur,Prénom,Nom,Mot de passe,Groupe" > "$output_file"
# Lire le fichier d'entrée ligne par ligne
while IFS=' ' read -r firstname lastname group; do
# Générer le nom d'utilisateur en prenant l'initiale du prénom et le nom, tout en minuscules
username="${firstname:0:1}${lastname}"
# Générer un mot de passe aléatoire
password=$(generate_password)
# Ajouter la ligne au fichier de sortie
echo "$username,$firstname,$lastname,$password,$group" >> "$output_file"
done < "$input_file"
echo "Fichier logins.csv généré avec succès."

View File

@@ -0,0 +1,16 @@
#!/bin/bash
if [ -z "$1" ] ; then
read -p "Erreur: Ecrivez un message " $message
else
message=$1
fi
# Ajout des fichiers modifiers
git add .
# Commit avec le message
git commit -m "$message"
# Push vers le dépot
git push -u https://jeremy.thomas@gitea.lyc-lecastel.fr/redouane.assani/siotp.git

View File

@@ -0,0 +1,109 @@
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 3600;
max-lease-time 604800;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.100;
option domain-name "sio-ra.lan";
option routers 192.168.2.1;
option domain-name-servers 192.168.0.121;
}
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
#subnet 10.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 10.254.239.40 10.254.239.60;
# option broadcast-address 10.254.239.31;
# option routers rtr-239-32-1.example.org;
#}
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.example.com";
#}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
host XP {
hardware ethernet 08:00:27:77:70:0D;
fixed-address 192.168.2.105;
}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}

View File

@@ -0,0 +1,22 @@
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA dns1-ra.sio-ra.lan. root.dns1-ra.sio-ra.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns1-ra.sio-ra.lan.
@ IN NS dns2-ra.sio-ra.lan.
dns1-ra.sio-ra.lan. IN A 192.168.0.121
dns2-ra.sio-ra.lan. IN A 192.168.0.122
@ IN A 127.0.0.1
0.168.192.in-addr.arpa IN PTR dns1-ra.sio.lan.
deb-dhcp-ra IN A 192.168.0.120
;@ IN AAAA ::1
dhcp cname deb-dhcp-ra
dns1 cname dns1-ra
dns2 cname dns2-ra

View File

@@ -0,0 +1,19 @@
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA dns1-ra.sio-ra.lan. root.dns1-ra.sio-ra.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns1-ra.sio-ra.lan.
@ IN A 127.0.0.1
121 IN PTR dns1-ra.sio-ra.lan.
120 IN PTR deb-dhcp-ra.sio-ra.lan.
121 IN PTR dns2-ra.sio-ra.lan
;
dhcp cname deb-dhcp-ra
dns1 cname dns1-ra
dns2 cname dns2-ra

View File

@@ -0,0 +1,20 @@
//
// Do any local configuration here
// zone directe
zone "sio-ra.lan" {
type master;
file "/etc/bind/db.sio-ra.lan";
};
// zone inverse
zone "0.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.sio-ra.lan.rev";
};
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

View File

@@ -0,0 +1,4 @@
domain sio-ra.lan
search sio-ra.lan
nameserver 127.0.0.1
nameserver 10.121.38.8

View File

@@ -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

Binary file not shown.

View File

@@ -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";

View File

@@ -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";

View File

@@ -0,0 +1,4 @@
domain sio-ra.lan
search sio-ra.lan
nameserver 127.0.0.1
nameserver 10.121.38.8

View File

@@ -0,0 +1,6 @@
# tp03-reseau-prive
* Construction d'un reséaux interne virtuelle
* Configuration de serveurs DNS Primaires et secondaires
* automatisation du lacement du script NAT
* Configuration du service DHCP pour utiliser ces DNS

View File

@@ -0,0 +1,24 @@
# 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
#premiere interface - adr. statique
auto enp0s3
iface enp0s3 inet static
address 192.168.0.120/24
gateway 192.168.0.1
#deuxieme interface -adr. statique
auto enp0s8
iface enp0s8 inet dhcp

View File

@@ -0,0 +1,6 @@
#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
nft add table basic_nat_table
nft add chain basic_nat_table prerouting {type nat hook prerouting priority 0 \; }
nft add chain basic_nat_table postrouting {type nat hook postrouting priority 0 \; }
nft add rule basic_nat_table postrouting masquerade

View File

@@ -0,0 +1,17 @@
# 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
#premiere interface - adr. statique
auto enp0s3
iface enp0s3 inet dhcp

View File

@@ -0,0 +1,23 @@
//
// Do any local configuration here
// zone directe
zone "monlabo.lan" {
type slave;
file "/etc/bind/db.monlabo.lan";
masters { 172.16.0.1; };
masterfile-format text;
};
// zone inverse
zone "0.16.172.in-addr.arpa" {
type slave;
notify no;
file "/etc/bind/db.monlabo.lan.rev";
masters { 172.16.0.1; };
};
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

View File

@@ -0,0 +1,19 @@
# 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
#premiere interface - adr. statique
auto enp0s3
iface enp0s3 inet static
address 172.16.0.1/24
gateway 172.16.0.254

View File

@@ -0,0 +1,114 @@
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
subnet 172.16.0.0 netmask 255.255.255.0 {
range 172.16.0.20 172.16.0.119;
option routers 172.16.0.254;
option domain-name "monlabo.lan";
option domain-name-servers 172.16.0.1, 172.16.0.2;
}
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
#subnet 10.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 10.254.239.40 10.254.239.60;
# option broadcast-address 10.254.239.31;
# option routers rtr-239-32-1.example.org;
#}
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.example.com";
#}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
host svr-admin-ra {
hardware ethernet 08:00:27:87:c3:bd;
fixed-address 172.16.0.254;
}
host srv-dns2 {
hardware ethernet 08:00:27:0a:28:ab;
fixed-address 172.16.0.2;
}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}

View File

@@ -0,0 +1,18 @@
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="enp0s3"
INTERFACESv6=""

View File

@@ -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.

View File

@@ -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.
;

View File

@@ -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";

View File

@@ -0,0 +1,4 @@
domain monlabo.lan
search monlabo.lan
nameserver 127.0.0.1
nameserver 10.121.38.8