Re: problème DNS
Tahar BEN ACHOUR a écrit :
> Bonjour à tous,
Bonjour,
> J'ai configuré un serveur DNS secondaire, et j'ai un petit soucis c'est que quand je fais une requête dessus sur une machine distante je n'ai aucune réponse, alors que quand je vais sur la machine elle même en local et que je fais la même requete dns j'ai une réponse et rapidement
>
> par exemple dpuis ma machine je fais
>
> tahar@tbalinux2:~$ dig @193.95.93.243 google.fr any
>
> ; <<>> DiG 9.5.0-P2.1 <<>> @193.95.93.243 google.fr any
> ; (1 server found)
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 22627
> ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
> ;; WARNING: recursion requested but not available
> ^
> ;; QUESTION SECTION: |
> ;google.fr. IN ANY |
> |
> ;; Query time: 9 msec |
> ;; SERVER: 193.95.93.243#53(193.95.93.243) |
> ;; WHEN: Wed May 12 18:26:23 2010 |
> ;; MSG SIZE rcvd: 27 |
> |
> aucune réponse |
|
euh! si! la réponse est là---------------------|
pour ne plus avoir cette erreur: un petit coup de google m'a donné
http://www.netadmintools.com/art592.html
vérifies si tu as ça:
dans /etc/named.conf in the global section (options):
$
options {
directory "/var/named/chroot/var/named";
pid-file "/var/run/named/named.pid";
# recursion no;
};
il faut commenter "#" recursion no...
> sur la machine DNS
>
> tahar@dns2:~$ dig @193.95.93.243 google.fr any
>
> ; <<>> DiG 9.5.1-P3 <<>> @193.95.93.243 google.fr any
> ; (1 server found)
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39313
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 12, AUTHORITY: 4, ADDITIONAL: 4
>
> ;; QUESTION SECTION:
> ;google.fr. IN ANY
>
> ;; ANSWER SECTION:
> google.fr. 86400 IN SOA ns1.google.com. dns-admin.google.com. 1415205 21600 3600 1209600 300
> google.fr. 10800 IN MX 10 google.com.s9a1.psmtp.com.
> google.fr. 10800 IN MX 10 google.com.s9a2.psmtp.com.
> google.fr. 10800 IN MX 10 google.com.s9b1.psmtp.com.
> google.fr. 10800 IN MX 10 google.com.s9b2.psmtp.com.
> google.fr. 1800 IN A 209.85.229.104
> google.fr. 1800 IN A 216.239.59.104
> google.fr. 1800 IN A 74.125.77.104
> google.fr. 345600 IN NS ns1.google.com.
> google.fr. 345600 IN NS ns3.google.com.
> google.fr. 345600 IN NS ns4.google.com.
> google.fr. 345600 IN NS ns2.google.com.
>
> ;; AUTHORITY SECTION:
> google.fr. 345600 IN NS ns3.google.com.
> google.fr. 345600 IN NS ns2.google.com.
> google.fr. 345600 IN NS ns4.google.com.
> google.fr. 345600 IN NS ns1.google.com.
>
> ;; ADDITIONAL SECTION:
> ns1.google.com. 345600 IN A 216.239.32.10
> ns2.google.com. 345600 IN A 216.239.34.10
> ns3.google.com. 345600 IN A 216.239.36.10
> ns4.google.com. 345600 IN A 216.239.38.10
>
> ;; Query time: 428 msec
> ;; SERVER: 193.95.93.243#53(193.95.93.243)
> ;; WHEN: Wed May 12 18:21:37 2010
> ;; MSG SIZE rcvd: 457
>
>
> J'ai une réponse très rapide,
>
> par ailleurs dans mon log j'ai tout le temps ce message
> May 12 18:19:14 dns2 named[2281]: client 41.228.64.130#64992: query (cache) 'ad.z5x.net/A/IN' denied
là je ne sais pas
> Quelqu'un aurait une idée ?
>
> merci beaucoup.
>
de rien
Reply to: