voici pour le dhcp :
[code]server:~# cat /etc/dhcp3/dhcpd.conf
ddns-update-style interim;
authoritative;
deny duplicates;
default-lease-time 86400;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
ddns-updates on;
ddns-domainname “zone.domain.tld”;
ddns-rev-domainname “in-addr.arpa”;
option domain-name “zone.domain.tld”;
option domain-name-servers 192.168.0.1;
subnet 192.168.0.0 netmask 255.255.255.0{
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
range 192.168.0.10 192.168.0.250;
}
host router {
hardware ethernet 00:13:8F:22:51:64;
fixed-address 192.168.0.1;
}
subnet 192.168.1.0 netmask 255.255.255.0{
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
range 192.168.1.10 192.168.1.250;
}
host print {
hardware ethernet 00:0E:2E:60:F7:B8;
fixed-address 192.168.1.2;
}
[/code]
Voici pour la zone
server:~# cat /var/cache/bind/zone.domain.tld.zone
$ORIGIN .
$TTL 7200 ; 2 hours
zone.domain.tld IN SOA ns.zone.domain.tld. hostmaster.zone.domain.tld. (
2007030302 ; serial changer les serials !!
7200 ; refresh (2 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns.zone.domain.tld.
NS ns2.zone.domain.tld.
MX 5 mail.zone.domain.tld.
$ORIGIN zone.domain.tld.
A 192.168.0.82
ns IN A 192.168.0.1
ns2 IN A 192.168.0.82
server IN A 192.168.0.1
linux IN A 192.168.0.82
ftp IN A 192.168.0.82
imap IN A 192.168.0.82
mail IN A 192.168.0.82
pop IN A 192.168.0.82
pops IN A 192.168.0.82
imaps IN A 192.168.0.82
smtp IN A 192.168.0.82
www IN A 192.168.0.82
routeur IN A 192.168.0.1
printer IN A 192.168.1.2
mysql IN A 192.168.0.82
download CNAME zone.domain.tld.
forums CNAME zone.domain.tld.
galerie CNAME zone.domain.tld.
Voici pour le reverse:
server:~# cat /var/cache/bind/db.192.168.0
$TTL 3h
@ IN SOA ns.zone.domain.tld. hostmaster.zone.domain.tld. (
2007030301 ; changer les serials !!
8H
2H
1W
1D )
@ IN NS ns.zone.domain.tld.
@ IN MX 5 mail.zone.domain.tld.
1 IN PTR ns.zone.domain.tld.
1 IN PTR mail.zone.domain.tld.
82 IN PTR ftp.zone.domain.tld.
1 IN PTR server.zone.domain.tld.
1 IN PTR routeur.zone.domain.tld.
82 IN PTR mysql.zone.domain.tld.
82 IN PTR pop.zone.domain.tld.
82 IN PTR smtp.zone.domain.tld.
82 IN PTR pops.zone.domain.tld.
82 IN PTR imap.zone.domain.tld.
82 IN PTR imaps.zone.domain.tld.
82 IN PTR www.zone.domain.tld.
voici pour bind et le transfert de zone:
sur le serveur de nom secondaire mettre slave au lieu de master
[code]server:~# cat /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include “/etc/bind/zones.rfc1918”;
zone “zone.domain.tld” {
type master;
notify yes;
allow-transfer {192.168.0.82;} ;
file “/var/cache/bind/zone.domain…tld.zone”;
};
zone “0.168.192.in-addr.arpa” {
type master;
notify yes;
allow-transfer {192.168.0.82;} ;
file “/var/cache/bind/db.192.168.0”;
};
[/code]
voici pour les interfaces réseau:
[code]server:~# cat /etc/network/interfaces
This file describes the network interfaces available on your system
and how to activate them. For more information, see interfaces(5).
Interface LOOPBACK
auto lo
iface lo inet loopback
Interface WAN
allow-hotplug eth1
iface eth1 inet dhcp
Interface LAN
allow-hotplug eth2
iface eth2 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Interface PRINTER
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
[/code]
Sinon, j’ai suivi ce tut qui est assez complet :
arnofear.free.fr/linux/template. … o=1&page=1
J’ai peut-être oublié un fichier de conf ou autre ta qu’a poster un message 