jeudi 22 mars 2012

Un cache DNS pour votre Debian...

Attention! Cette "manip" ne m'a apporté que des problèmes... (voir messages plus haut)


Le cache DNS local est rarement présent sur les distribution Linux contrairement à Windows... Pourtant, il permet d'accélérer votre connexion de manière significative.
Si vous voulez en installer un, alors suivez le guide... (traduit du texte en Anglais, plus bas)...
Commencez par installer dnsmasq soit à partir de Synaptic ou en utilisant la commande: sudo apt-get install dnsmasq
Ensuite, vous aurez besoin de changer l'ordre de vos serveurs DNS en allant dans "Système-> Préférences-> Connexions réseau" ou tout simplement en cliquant droit sur l'icône réseau dans la barre de notification puis "modifier les connexions".
Sélectionnez le nom de la connexion que vous utilisez et cliquez sur Modifier ...
Allez ensuite à Paramètres IPv4.
Choisissez "Méthode: Manuel", mettez "127.0.0.1" (sans les guillemets) le champ "serveurs DNS.
Si vous utilisez "Méthode: Automatique (DHCP)" -> Changer pour "automatique (DHCP) seulement" et mettez "127.0.0.1,8.8.8.8" dans le champ "serveurs DNS.
8.8.8.8 (ou 8.8.4.4) est le serveur DNS de Google mais vous voudrez peut-être le remplacer par celui fourni par votre FAI (Fournisseur d'Accès Internet).
Redémarrez le service network-manager en exécutant la commande sudo service network-manager restart dans le Terminal.
Vous pouvez aussi aller voir si /etc/resolv.conf a bien été modifié: sudo mousepad /etc/resolv.conf. Il devrait ressembler à ceci:



# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1

Attention, je pense qu'il faut avoir navigué un peu sur vos sites habituels pour que ce cache se constitue et constater une amélioration...

Vous avez maintenant un service de mise en cache DNS qui s'exécute sur votre ordinateur.

Begin by installing dnsmasq either from “Applications->Ubuntu Software Center” or by using the command sudo apt-get install dnsmasq from the console.


Next you’ll need the change the order of your DNS servers, do this by going to “System->Preferences->Network Connections”
Select the name of the connection you are using and click Edit…
Goto IPv4 Settings
If you have “Method: Manual”, put “127.0.0.1,” (without the quotation marks) in front of whatever it says in your “DNS servers:” field.
If you have “Method: Automatic(DHCP)” -> Change to “Automatic (DHCP) address only” and put “127.0.0.1,8.8.8.8″ in the “DNS servers:” field.
8.8.8.8 is Googles DNS server, you might want to replace this with the one provided by your ISP (Internet Service Provider).
Reboot the network-manager service by executing the command sudo service network-manager restart from the command line.
You now have a DNS Caching service running on your computer.
D'après http://www.petur.eu/blog/?p=409

Aucun commentaire:

Enregistrer un commentaire

Ajoutez un commentaire mais en bon Français ou éventuellement en bon Anglais. Les commentaires en langage SMS seront supprimés.