Comme précédement, on peut tester notre nouvelle configuration avec nslookup :
$ nslookup
Default Server: machine1.domaine1
Address: 192.168.1.1
> machine1.domaine1
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine1.domaine1
Address: 192.168.1.1
> machine2.domaine1
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine2.domaine1
Address: 192.168.1.2
> machine3.domaine1
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine3.domaine1
Address: 192.168.1.3
> 192.168.1.1
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine1.domaine1
Address: 192.168.1.1
> 192.168.1.2
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine2.domaine1
Address: 192.168.1.2
> 192.168.1.3
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine3.domaine1
Address: 192.168.1.3
> www.domaine1
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine1.domaine1
Address: 192.168.1.1
Aliases: www.domaine1
> ls -d domaine1
[machine1.domaine1]
$ORIGIN domaine1.
@ 12H IN SOA machine1 root.machine1 (
2000070306 ; serial
1H ; refresh
15M ; retry
2W ; expiry
12H ) ; minimum
12H IN NS machine1
12H IN MX 10 machine1
12H IN MX 20 machine1
12H IN TXT "Serveur DNS local de domaine1"
12H IN A 192.168.1.1
12H IN A 192.168.1.3
localhost 12H IN A 127.0.0.1
mail 12H IN CNAME machine1
www 12H IN CNAME machine1
12H IN A 192.168.1.1
12H IN A 192.168.1.2
ftp 12H IN CNAME machine1
@ 12H IN SOA machine1 root.machine1 (
2000070306 ; serial
1H ; refresh
15M ; retry
2W ; expiry
12H ) ; minimum
>