dig debian-fr.org @192.168.0.1
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> www.debian-fr.org @192.168.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38484
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3
;; QUESTION SECTION:
;www.debian-fr.org. IN A
;; ANSWER SECTION:
www.debian-fr.org. 38388 IN A 91.121.50.62
;; AUTHORITY SECTION:
debian-fr.org. 86387 IN NS ns.kimsufi.com.
debian-fr.org. 86387 IN NS daboog.zehome.com.
debian-fr.org. 86387 IN NS chp.zehome.com.
;; ADDITIONAL SECTION:
ns.kimsufi.com. 172787 IN A 213.186.33.199
ns.kimsufi.com. 172787 IN AAAA 2001:41d0:3:1c7::1
daboog.zehome.com. 172787 IN A 178.33.46.1
;; Query time: 1 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Fri Jan 17 21:08:41 2014
;; MSG SIZE rcvd: 185
Et sur le client :
; <<>> DiG 9.8.3-P1 <<>> debian-fr.org @192.168.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 61488
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;debian-fr.org. IN A
;; Query time: 32 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Fri Jan 17 21:09:30 2014
;; MSG SIZE rcvd: 31
Je pense qu’on touche au but !
Voici le contenu de /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { ::1; };
listen-on { 127.0.0.1; 192.168.0.0/24; };
allow-recursion { 127.0.0.1; ::1; 192.168.0.0/24; };
allow-query { 192.168.0.0/24; };
};