Bonjour,
Dans le cadre d’un projet educatif. J’ai pour projet de monté un serveur DNS menteur (DNS-RPZ) comme fitrage. Cependant malgrès tout le soin apporté à mon projet quelques détails m’échappent.
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> www.google.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3319
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.fr. IN A
;; Query time: 927 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 30 12:26:52 2014
;; MSG SIZE rcvd: 31
J’obtiens la résolution suivante.
Voici mon named.conf
zone "filtrage.local" {
type master;
file "/etc/bind/filtrage.local";
forwarders {
8.8.8.8;
Ma zone d’authorité
$ORIGIN filtrage.local.
$TTL 86400
@ IN SOA srv-filtrage.filtrage.local. root.filtrage.local. (
2001062501 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
@ NS srv-filtrage.filtrage.local.
www.youtube.com CNAME .
youtube.com CNAME .
*.yahoo.com CNAME *.
*.facebook.com CNAME *.
www.blablabla.com CNAME www.google.com.
Et ma zone de resolution inverse (Celle ci je ne suis pas sur de la configuration ) db.filtrage.local
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA srv-filtrage.filtrage.local. root.filtrage.local. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS srv-filtrage.
1.0.0 IN PTR srv-filtrage.filtrage.local.
Je suis preneur pour tout complément d’information amis linuxien 
PS: mon nsswicth.conf est configuré pour une resolution file puis dns.
et mon resolv.conf sur une resolution : 127.0.0.1
Je vous remercie de l’importance accordé à ma demande.