# Installer un DNS sur son réseau local

**URL:** <https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039>\
**Category:** Trucs et Astuces\
**Created:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039 "2016-02-20T23:08:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![lol](https://www.debian-fr.org/user_avatar/www.debian-fr.org/lol/32/15629_2.png) [@lol](https://www.debian-fr.org/u/lol)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/1 "2016-02-20T23:08:18Z")

</div>

Salut,

J’ai pondu une nouvelle croute sur le Wiki…  
La page n’est pas tout a fait terminée, mais c’est déjà bien avancé…

[isalo.org/wiki.debian-fr/index.php/BIND](http://www.isalo.org/wiki.debian-fr/index.php/BIND)

Vos commentaires, réflexions, et remarques (même désagréables) sont les bienvenus! 😃

---

<div class="post-metadata">

**Author:** ![ggoodluck47](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@ggoodluck47](https://www.debian-fr.org/u/ggoodluck47)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/2 "2016-02-20T23:08:19Z")

</div>

Salut,

[quote]  
Cette page a été consultée 66 fois.[/quote] ![:038](https://www.debian-fr.org/uploads/default/original/1X/08df484251490af77ba342c0331f3ee271065fe9.gif "bravo")

Apurer se dit d’un compte de comptabilité que l’on solde 🙂

---

<div class="post-metadata">

**Author:** ![lol](https://www.debian-fr.org/user_avatar/www.debian-fr.org/lol/32/15629_2.png) [@lol](https://www.debian-fr.org/u/lol)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/3 "2016-02-20T23:08:19Z")

</div>

Re,  
Merci pour les corrections… J’avais la tête un peu pleine de ces histoires de SOA, A, AAAA et autres IN et @ !

Pour info, j’ai ajouté un exemple de configuration de DNS chez un “registrar” sur la page [isalo.org/wiki.debian-fr/ind … ec\_Postfix](http://www.isalo.org/wiki.debian-fr/index.php/Configuration_dun_serveur_mail_avec_Postfix)

Je vais ajouter des précisions. Car dans cette page, contrairement à celle sur BIND que je viens de faire, il s’agit de configurer un DNS “externe”, pas celui de son réseau local (encore que l’on peut aussi - et même, on doit si on a un serveur de mail en local - ajouter un champ MX; J’en reparlerais…)

Donc quand on parle de vérifier si le DNS est OK, il ne faut pas le faire avec son propre DNS, mais avec celui de son FAI…

---

<div class="post-metadata">

**Author:** ![ggoodluck47](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@ggoodluck47](https://www.debian-fr.org/u/ggoodluck47)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/4 "2016-02-20T23:08:20Z")

</div>

Re,

Et si j’ai bien compris les heureux abonnés à Orange ne peuvent pas espérer s’installer un mail privé 😆

---

<div class="post-metadata">

**Author:** ![Sshdebian](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@Sshdebian](https://www.debian-fr.org/u/Sshdebian)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/5 "2016-02-20T23:08:24Z")

</div>

En un mot = BRAVO lol

Merci, un grand merci, je vais pouvoir en apprendre plus, et essayer de configurer mon dns sur debian et essayer aussi ![:mrgreen:](https://www.debian-fr.org/uploads/default/original/1X/cc83e9b583138e48ff45f96609046b06d06c7f9d.gif "Mr. Green") de m’installer un serveur mail chez moi.

Je suis chez orange ![:12](https://www.debian-fr.org/uploads/default/original/1X/5ab5476dc281287f8b7ad337242a19cb8485624d.gif "grincheux")

Bon, je mon débit d’orange me réconforte quand même lol. (comparer à avant)

---

<div class="post-metadata">

**Author:** ![lol](https://www.debian-fr.org/user_avatar/www.debian-fr.org/lol/32/15629_2.png) [@lol](https://www.debian-fr.org/u/lol)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/6 "2016-02-20T23:08:25Z")

</div>

Re,  
A ceux qui sont chez Orange et qui ont un DNS local…

Que donne :

host [smtp.wanadoo.fr](http://smtp.wanadoo.fr) localhost ?

Chez moi qui ne suis pas chez orange :

[code]$ host [smtp.wanadoo.fr](http://smtp.wanadoo.fr) lol  
Using domain server:  
Name: lol  
Address: 192.168.0.1#53  
Aliases:

[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.9  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.15  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.53  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.62  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.82  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.142  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 80.12.242.148  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 193.252.22.65  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 193.252.22.92  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr) has address 193.252.23.67  
[/code]

Je crois… que vous n’aurez pas le même résultat que moi. Et que le votre sera mauvais…  
Donc vous ne pourrez pas envoyer de mail en passant par le smtp de Orange votre beau DNS vous retournant de mauvaises IP… Pratique!

Il y a une solution, c’est créer une zone [wanadoo.fr](http://wanadoo.fr) de type “forward” dans votre DNS perso et d’y mettre les bons IP…

Quelqu’un peut confirmer que je complète la page du Wiki ?

---

<div class="post-metadata">

**Author:** ![ricardo](https://www.debian-fr.org/user_avatar/www.debian-fr.org/ricardo/32/3864_2.png) [@ricardo](https://www.debian-fr.org/u/ricardo)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/7 "2016-02-20T23:08:25Z")

</div>

Ô range, ô désespoir, n’…  
😈

---

<div class="post-metadata">

**Author:** ![Sshdebian](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@Sshdebian](https://www.debian-fr.org/u/Sshdebian)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/8 "2016-02-20T23:08:25Z")

</div>

Voila pour ma part.

Attention, cela provient du FAI oléane. (mais c’est orange quoi) (suis au taff ![:033](https://www.debian-fr.org/uploads/default/original/1X/42cd8bd0447ecac24cdff1e26fa990a5c8442791.gif "petard") )

```auto
debian:~# host smtp.wanadoo.fr

smtp.wanadoo.fr has address 80.12.242.53
smtp.wanadoo.fr has address 80.12.242.62
smtp.wanadoo.fr has address 80.12.242.82
smtp.wanadoo.fr has address 80.12.242.142
smtp.wanadoo.fr has address 80.12.242.148
smtp.wanadoo.fr has address 193.252.22.65
smtp.wanadoo.fr has address 193.252.22.92
smtp.wanadoo.fr has address 193.252.23.67
smtp.wanadoo.fr has address 80.12.242.9
smtp.wanadoo.fr has address 80.12.242.15

```

@ricardo : J’ai fait des comparatifs avec touts les FAI possible, j’été chez NEUF/SFR avec du 2 Mega MAX que (soit disant) je pouvais avoir. (pendant 2 ans)  
Un jour ca ma soulé…j’ai comparé et voulu savoir à quoi je pouvais prétendre…  
Comparatifs fait :

Les autres tous pareils…2- 4 Mega MAX…

Orange : Offre à 20 Mega MAx + tel + tv + 1 h vers les mobiles (fixe vers mobiles) Donc offre Quadruplay

Devine chez qui je suis partie ![:mrgreen:](https://www.debian-fr.org/uploads/default/original/1X/cc83e9b583138e48ff45f96609046b06d06c7f9d.gif "Mr. Green")

Surtout en étant à 70 mètres du DSLAM… ![:033](https://www.debian-fr.org/uploads/default/original/1X/42cd8bd0447ecac24cdff1e26fa990a5c8442791.gif "petard")  
Test avec [Speedtest.net](http://Speedtest.net)…

Résultat…lol

=\> Donw à 20 650 environ (je dl à 2.6Mo) ![:030](https://www.debian-fr.org/uploads/default/original/1X/65b1b73704eec538091c0e1d04a633b3840a284f.gif "picole") ![:041](https://www.debian-fr.org/uploads/default/original/1X/bfe857c9119752799c3eac55ca37a50312c51282.gif "applaudit")

téléchargé une distribution comme Debian me prends 4 minutes environ. ![:118](https://www.debian-fr.org/uploads/default/original/1X/d1e19597f004a3fd88435bfd0efb9a00e740a16a.gif "langue-yeux")  
=\> Up à 1021…( 850 kb/s)

---

<div class="post-metadata">

**Author:** ![ricardo](https://www.debian-fr.org/user_avatar/www.debian-fr.org/ricardo/32/3864_2.png) [@ricardo](https://www.debian-fr.org/u/ricardo)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/9 "2016-02-20T23:08:26Z")

</div>

Et combien tu paies pour tout ça, 29.99 €/mois ?

---

<div class="post-metadata">

**Author:** ![lol](https://www.debian-fr.org/user_avatar/www.debian-fr.org/lol/32/15629_2.png) [@lol](https://www.debian-fr.org/u/lol)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/10 "2016-02-20T23:08:26Z")

</div>

Re,

[quote=“Sshdebian”][code]  
debian:~# host [smtp.wanadoo.fr](http://smtp.wanadoo.fr)

bla, bla…  
[/code]  
[/quote]

Identiques…  
Je me suis planté ou… Tu as utilisé les DNS d’Orange ou ton propre serveur DNS ?  
Comment es-tu connecté ?

Ici quelqu’un qui rencontre ce problème (c’est assez récent)  
[blog.jardinmagique.info/2010/03/ … erdus.html](http://blog.jardinmagique.info/2010/03/oranges-et-lutins-perdus.html)

J’aimerais bien être fixé sur ce petit problème…

---

<div class="post-metadata">

**Author:** ![Sshdebian](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@Sshdebian](https://www.debian-fr.org/u/Sshdebian)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/11 "2016-02-20T23:08:26Z")

</div>

Mon propre serveur DNS.

`debian:~# cat /etc/host
srvdt.NOTREDOMAINE.local`

[code]debian:~# cat /etc/resolv.conf

### BEGIN INFO

# 

# Modified\_by: NetworkManager

# Process: /usr/bin/NetworkManager

# Process\_id: 2243

# 

### END INFO

domain \*\*\*\*\*.local

search \*\*\*\*\*.local

nameserver 10.1.1.100  
nameserver 194.2.0.20  
nameserver 194.2.0.50

[/code]

Il s’agit de notre serveur DNS.

Mais sur le serveur DNS, en paramètre dns auxiliaire une adresse Ip de DNS de Oléane à été renseigné.

EDIT : Non je viens de vérifié

[code]Nom de l’hôte . . . . . . . . . . : \*\*\*\*\*  
Suffixe DNS principal . . . . . . : \*\*\*\*\*.local  
Type de noud . . . . . . . . . . : Inconnu  
Routage IP activé . . . . . . . . : Non  
Proxy WINS activé . . . . . . . . : Non  
Liste de recherche du suffixe DNS.: \*\*\*\*\*.local

thernet RESEAU \*\*\*\*\* :

Suffixe DNS propre à la connexion :  
Description . . . . . . . . . . . : HP Network Team #1  
Adresse physique . . . . . . . . . : \*\*\*\*\*\*\*  
DHCP activé. . . . . . . . . . . . : Non  
Adresse IP. . . . . . . . . . . . : 10.1.1.100  
Masque de sous-réseau . . . . . . : 255.255.255.0  
Passerelle par défaut . . . . . . : 10.1.1.1  
Serveurs DNS . . . . . . . . . . : 10.1.1.100

[/code]

Re re EDIT . Ah bah Debian prends par defaut les dns d’oleane aussi. 😕 Bizarre non

@ricardo : 34.90 €/mois (suis en campagne avec ± 500 habitants.) ![:mrgreen:](https://www.debian-fr.org/uploads/default/original/1X/cc83e9b583138e48ff45f96609046b06d06c7f9d.gif "Mr. Green")

---

<div class="post-metadata">

**Author:** ![lol](https://www.debian-fr.org/user_avatar/www.debian-fr.org/lol/32/15629_2.png) [@lol](https://www.debian-fr.org/u/lol)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/12 "2016-02-20T23:08:27Z")

</div>

re,  
Et que donne un dig ?

[code]$ dig [smtp.orange.fr](http://smtp.orange.fr)

; \<\<\>\> DiG 9.7.1-P2 \<\<\>\> [smtp.orange.fr](http://smtp.orange.fr)  
;; global options: +cmd  
;; Got answer:  
;; -\>\>HEADER\<\<- opcode: QUERY, status: NOERROR, id: 58819  
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:  
;[smtp.orange.fr](http://smtp.orange.fr). IN A

;; ANSWER SECTION:  
[smtp.orange.fr](http://smtp.orange.fr). 474 IN A 193.252.22.84  
[smtp.orange.fr](http://smtp.orange.fr). 474 IN A 193.252.22.86

;; AUTHORITY SECTION:  
[orange.fr](http://orange.fr). 95 IN NS [ns.wanadoo.fr](http://ns.wanadoo.fr).  
[orange.fr](http://orange.fr). 95 IN NS [ns2.wanadoo.fr](http://ns2.wanadoo.fr).

;; Query time: 0 msec  
;; SERVER: 192.168.0.1#53(192.168.0.1)  
;; WHEN: Thu Aug 5 17:36:59 2010  
;; MSG SIZE rcvd: 107  
[/code]

---

<div class="post-metadata">

**Author:** ![Sshdebian](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@Sshdebian](https://www.debian-fr.org/u/Sshdebian)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/13 "2016-02-20T23:08:28Z")

</div>

Pareil.

[code]debian:~# dig [smtp.wanadoo.fr](http://smtp.wanadoo.fr)

; \<\<\>\> DiG 9.6-ESV-R1 \<\<\>\> [smtp.wanadoo.fr](http://smtp.wanadoo.fr)  
;; global options: +cmd  
;; Got answer:  
;; -\>\>HEADER\<\<- opcode: QUERY, status: NOERROR, id: 61745  
;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:  
;[smtp.wanadoo.fr](http://smtp.wanadoo.fr). IN A

;; ANSWER SECTION:  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.15  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.53  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.62  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.82  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.142  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.148  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 193.252.22.65  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 193.252.22.92  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 193.252.23.67  
[smtp.wanadoo.fr](http://smtp.wanadoo.fr). 381 IN A 80.12.242.9

;; Query time: 1 msec  
;; SERVER: 10.1.1.100#53(10.1.1.100)  
;; WHEN: Thu Aug 5 16:41:37 2010  
;; MSG SIZE rcvd: 193  
[/code]

Oups. (essai avec orange.)

[code]; \<\<\>\> DiG 9.6-ESV-R1 \<\<\>\> [smtp.orange.fr](http://smtp.orange.fr)  
;; global options: +cmd  
;; Got answer:  
;; -\>\>HEADER\<\<- opcode: QUERY, status: NOERROR, id: 14418  
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:  
;[smtp.orange.fr](http://smtp.orange.fr). IN A

;; ANSWER SECTION:  
[smtp.orange.fr](http://smtp.orange.fr). 230 IN A 193.252.22.86  
[smtp.orange.fr](http://smtp.orange.fr). 230 IN A 193.252.22.84

;; AUTHORITY SECTION:  
[orange.fr](http://orange.fr). 2804 IN NS [ns2.wanadoo.fr](http://ns2.wanadoo.fr).  
[orange.fr](http://orange.fr). 2804 IN NS [ns.wanadoo.fr](http://ns.wanadoo.fr).

;; Query time: 22 msec  
;; SERVER: 10.1.1.100#53(10.1.1.100)  
;; WHEN: Thu Aug 5 16:42:53 2010  
;; MSG SIZE rcvd: 107

[/code]

[code]debian:~# nslookup [smtp.orange.fr](http://smtp.orange.fr)  
Server: 10.1.1.100  
Address: 10.1.1.100#53

Non-authoritative answer:  
Name: [smtp.orange.fr](http://smtp.orange.fr)  
Address: 193.252.22.86  
Name: [smtp.orange.fr](http://smtp.orange.fr)  
Address: 193.252.22.84  
[/code]

Peu être que tout simplement orange à changé ses DNS. ^^ ![:115](https://www.debian-fr.org/uploads/default/original/1X/f0b4ead290aa124671b5f77e5c5e1073057a630b.gif "eureka")

---

<div class="post-metadata">

**Author:** ![lol](https://www.debian-fr.org/user_avatar/www.debian-fr.org/lol/32/15629_2.png) [@lol](https://www.debian-fr.org/u/lol)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/14 "2016-02-20T23:08:32Z")

</div>

Salut,  
Merci, je laisse ce problème dans un coin jusqu’à ce que j’ai confirmation.

Moi ça ne me pose pas de problème… ![:mrgreen:](https://www.debian-fr.org/uploads/default/original/1X/cc83e9b583138e48ff45f96609046b06d06c7f9d.gif "Mr. Green")

---

<div class="post-metadata">

**Author:** ![Sshdebian](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@Sshdebian](https://www.debian-fr.org/u/Sshdebian)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/15 "2016-02-20T23:08:32Z")

</div>

OkAy ![:mrgreen:](https://www.debian-fr.org/uploads/default/original/1X/cc83e9b583138e48ff45f96609046b06d06c7f9d.gif "Mr. Green")

---

<div class="post-metadata">

**Author:** ![kna](https://www.debian-fr.org/user_avatar/www.debian-fr.org/kna/32/5623_2.png) [@kna](https://www.debian-fr.org/u/kna)\
**Post date:** [Février 20, 2016, 11:08 UTC](https://www.debian-fr.org/t/installer-un-dns-sur-son-reseau-local/28039/16 "2016-02-20T23:08:59Z")

</div>

J’en avais entendu parler du problème d’Orange : [irp.nain-t.net/doku.php/160dns:3 … our\_orange](http://irp.nain-t.net/doku.php/160dns:30_construire_un_dns#note_pour_orange)  
Maintenant, je ne suis pas chez Orange, moi…

Pour le wiki, j’ai lu rapidement, c’est pas mal du tout. Juste quelques remarques :

- peut-être expliquer un peu plus ce qu’est le fichier hosts quand tu en parles au début.
- parler de resolv.conf !
- préciser que pour un DNS local, il faut utiliser un TLD non présent sur le net, en évitant aussi .local pour ne pas créer de conflits avec [Zeroconf](http://fr.wikipedia.org/wiki/Zeroconf#Multicast_DNS_.28mDNS.29).
