Une fois encore, on teste 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
> machine1.domaine2
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine1.domaine2
Address: 192.168.2.1
> machine2.domaine3
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine2.domaine3
Address: 192.168.3.2
> 192.168.2.3
Server: machine1.domaine1
Address: 192.168.1.1
Name: machine3.domaine2
Address: 192.168.2.3
> set q=any
> machine2.domaine3
Server: machine1.domaine1
Address: 192.168.1.1
machine2.domaine3 CPU = Non definit OS = Non definit
machine2.domaine3 internet address = 192.168.3.2
domaine3 nameserver = machine1.domaine1
machine1.domaine1 internet address = 192.168.1.1
> ls -d domaine2
[machine1.domaine1]
$ORIGIN domaine2.
@ 12H IN SOA machine1.domaine1. root.machine1.domaine1. (
2000070306 ; serial
1H ; refresh
15M ; retry
2W ; expiry
12H ) ; minimum
12H IN NS machine1.domaine1.
12H IN MX 20 machine1.domaine1.
12H IN TXT "Serveur DNS local de domaine2"
12H IN A 192.168.1.1
12H IN A 192.168.2.3
localhost 12H IN A 127.0.0.1
mail 12H IN CNAME machine1
www 12H IN CNAME machine1
12H IN A 192.168.2.1
12H IN A 192.168.2.2
ftp 12H IN CNAME machine1
@ 12H IN SOA machine1.domaine1. root.machine1.domaine1. (
2000070306 ; serial
1H ; refresh
15M ; retry
2W ; expiry
12H ) ; minimum
>
|