Publié dans Linux, Serveurs

Configuration d’un serveur DNS avec ubuntu 10.04

Configuration d’un serveur DNS dans Ubuntu 10.04

l’aspect théorique sera laisser au soins du lecteur faite des recherches sur les différentes options du serveur DNS la documentations ne manque pas sur le net.Je vous mettrais des annexes en fin de configuration

==>sudo aptitude install bind9 bind9-utils

Premiére Partie Configuration

1-créer des zones

-Zone directe & Zone indirecte
éditer le fichier avec votre éditeur favoris
on auras besoin de créer des zones une zone directe et une zone indirecte et de définir leur emplacement dans le fichier de configuration.
Remplacez par le nom de domaine de votre choix. Et l’adresse IP aussi par celle de votre serveur
sudo vim /etc/bind/named.conf.local

// Do any local configuration here

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include « /etc/bind/zones.rfc1918 »;

zone « » {
type master;
file « /etc/bind/zones/ »;

zone « » {
type master;
notify no;
file « /etc/bind/zones/ »;

2- Créer un repertoire de zones
il n’est pas forcer de créer un répertoire de zones mais moi je le trouve intéressent du moment qu’on peut avoir à gérer plusieurs zones

=> mkdir /etc/bind/zones
3-Copier les fichiers de base des la différents fichier zones

*cp /etc/bind/db.local /etc/bind/zones/ 

*cp /etct/bind/db.127 /etc/bind/zones/

4-éditer les nouveaux fichiers de zones

a)éditer le fichier pour les enregistrement directe @IP=>Nom

sudo vim /etc/bind/zones/

; BIND data file for local loopback interface
$TTL 604800
@ IN SOA (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN A
@ IN AAAA ::1
ns IN A
www IN CNAME ns

b)éditer le fichier de configuration inverse reverse.zonr pour les enregistrement inverse Nom=>@IP

sudo vim /etc/bind/zones/

; BIND reverse data file for local loopback interface
$TTL 604800
@ IN SOA (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS ns.


  1. editer le fichier resol.conf

changer l’adresse du serveur dans le fichier resol.conf effacer ou commenter tout et mettre votre adresse du serveur DNS

sudo vim /etc/resol.conf

# Generated by NetworkManager

Deuxieme etape Test

1-redemarer le serveur
sudo /etc/init.d/bind9 restart
sudo service bind9 restart

2-Tester le serveur DNS
nous allons utiliser le commande nslookup

=> nslookup
si tout marche on doit avoir ceci



Auteur :

je suis un passionné de Linux et des logiciels libres!

32 commentaires sur « Configuration d’un serveur DNS avec ubuntu 10.04 »

  1. I think (or rather sure) that your point of view is similar to mine, but I’ve need you to clear one thing up, so i @ You. Thank you in adcance! Oh, I bbokmarked your Configuration d’un serveur DNS avec ubuntu 10.04 Elwan7's Blog in Digg also 🙂

  2. It’s pretty awesome exactly how quite often the simplest idea turns directly into a good whole article, is it not? You write efficiently, and I only wish I got just a little bit of the talent to put in writing alone! – Bill

  3. I think this is among the most significant information for me. And i am glad reading your article. But wanna remark on few general things, The site style is perfect, the articles is really nice : D. Good job, cheers

  4. Well thought out post. You have a important opinion on the subject and I shall be subscribing to your feed and will hope you shall write frequently on similar matters. But I was curious on what your sources for the article are? Thanks a lot

  5. I can’t believe that you just blogged about that subject. Not too many guys appreciate the value of these kinds of items Although not really specifically related, your website has provided me with a few great ideas for written content and design for a number of services websites I am building, for issues like Accountancy, Dentists, Plumbers, Solicitors and moving firms

  6. Great blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Kudos

  7. Have you ever thought about adding a little bit more than just your articles? I mean, what you say is important and all. Nevertheless think about if you added some great pictures or video clips to give your posts more, « pop »! Your content is excellent but with images and clips, this blog could undeniably be one of the greatest in its niche. Good blog!

  8. Hello, I found my blog by simply blooper i was incisive Yahoo for personal opinion idea humble opinion just like this individuals stumbled winning your own blog, I must recommend your web is extremely impressive I only dearest our take a look, its fantastic!. I don’t have the right time that back for abundant peruse your current website however I need bookmarked it and also signed up for your RSS feeds. I will be back in each day or perhaps two. credit for that super site.

  9. You ought to really take into consideration working on creating this blog into a major authority in this market. You evidently have a grasp handle of the matters everyone seems to be trying to find on this web site anyhow and you might actually even earn a buck or two off of some advertisements. I would discover following current subjects and raising the quantity of write ups you put up and I assure you’d begin seeing some wonderful focused site visitors within the near future. Just a thought, good luck in whatever you do!

  10. Thanks for taking the time to debate this, I feel strongly about it and love learning extra on this topic. If potential, as you gain experience, would you thoughts updating your weblog with further info? This can be very helpful for me.

  11. I was wondering if you ever thought of changing the structure of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 pictures. Maybe you could space it out better?

  12. Your weblog seems to be astounding – complete with good quality article content.. and so forth. I feel you’ll get even far better achievement with including some much more movies and pictures. What do you feel. Despite the fact that I’ve bookmarked it. Thank you.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:


Vous commentez à l'aide de votre compte Déconnexion /  Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion /  Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion /  Changer )


Connexion à %s