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 exemple.sn par le nom de domaine de votre choix. Et l’adresse IP 192.168.1.5 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 “exemple.sn” { type master; file “/etc/bind/zones/exemple.sn”; }; zone “1.168.192.in-addr.arpa” { type master; notify no; file “/etc/bind/zones/reverse.zone”; }; |
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/exemple.sn *cp /etct/bind/db.127 /etc/bind/zones/reverse.zone |
4-éditer les nouveaux fichiers de zones
a)éditer le fichier exemple.zone pour les enregistrement directe @IP=>Nom
sudo vim /etc/bind/zones/exemple.zone
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA ns.exemple.sn. root.exemple.sn. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns.exemple.sn. @ IN A 127.0.0.1 @ IN AAAA ::1 ns IN A 192.168.1.5 www IN CNAME ns |
b)éditer le fichier de configuration inverse reverse.zonr pour les enregistrement inverse Nom=>@IP
sudo vim /etc/bind/zones/reverse.zone
; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA ns.elwan.sn. root.elwan.sn. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns. 5 IN PTR ns.exemple.sn. |
-
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 nameserver 192.168.1.5 |
Deuxieme etape Test
1-redemarer le serveur
sudo /etc/init.d/bind9 restart
ou
sudo service bind9 restart
2-Tester le serveur DNS
nous allons utiliser le commande nslookup
=> nslookup ns.exemple.com
si tout marche on doit avoir ceci
Server: 192.168.1.5 Address: 192.168.1.5#53 Name: exemple.sn Address: 192.168.1.5 |
Good work! Thanks for this sort of interesting writing as I have been able to discover here. I agree with most of what’s written right here and I am going to be coming back to this website again.
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 🙂
I tend not to suppose that you simply may have the ability to turn this post into a video post? I’ve a difficult time studying on my pc along with a video will be much greater for me.
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
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
This writing really helped in all sorts of ways. Thanks.
extremely entertaining and creative. Anyway my prayers go out to the people at tsunami we hope your are well as well as free from danger too !!!
Some times its a pain in the ass to read what blog owners wrote but this internet site is really user pleasant! .
Usually I do not read post on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing style has been amazed me.Thanks, very nice post
Blogging keeps me insane. Keep up all the positive work. I too love to blog. I found this one to be very informative.
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
Simply killing some in between class time on Digg and I discovered your article . Not usually what I choose to examine, but it was completely price my time. Thanks.
Quite interesting ideas. Thanks a lot!
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
Hmm.. the blog publish is really the freshest on this topic. I agree with what you’ve got written and look ahead to extra of this kind of updates. I will definitely looking forward for your forthcoming posts. Cheers..
Taking a break, meditating, or doing relaxation exercises to relieve any pressure on oneself and on the composing.
I’ve gone ahead and bookmarked http://elwan7.wordpress.com/2010/09/14/configuration-dun-serveur-dns-avec-ubuntu-10-04/ at Digg.com so my friends can see it too. I simply used Configuration d’un serveur DNS avec ubuntu 10.04 Elwan7's Blog as the entry title in my Digg.com bookmark, as I figured if it is good enough for you to title your blog post that, then you probably would like to see it bookmarked the same way.
We simply couldnt leave your web site earlier than telling you that we actually loved the useful info you supply to your guests… Will be again quickly to investigate cross-check new posts
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
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!
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.
I needed to say that it is great to know that somebody mentioned this as I had problems discovering the identical information elsewhere. This was the first place that gave me the information. Thanks.
magnificent points altogether, you simply gained a brand new reader.What would you recommend about your post that you made a few days ago? Any positive?
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!
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.
What a wonderful short article I really enjoyed it
It’s very difficult to have valuable information on site this is clear and nicely explained. Thanks.
You know how they say diamond’s are a girl’s best friend? They were wrong
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?
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.
This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.
Thanks @ll , that’s very kind of you 😉