Linux – Add DHCP and DNS

How to install DHCP and DNS on Fedora / Centos / Redhat box;

yum -y install dhcp.i386 bind.i386

Set services to auto start using ntsysv — services are called “dhcpd” and “named”.

How to configure dhcp;

nano /etc/dhcpd.conf — configure as per sample provided. The sample is usually located in the same directory.
service dhcpd restart – should start without problem if done correctly

Note: dhcp range has to be on the same network as your adapter. You can run dhcpd from the command line to diagnose any issues.

How to configure bind (DNS);

I usually just forward DNS requests to my internal router. To do this just edit /etc/resolve.conf and place the following line in the file;


Use your ip above then all should be good. Test by pinging a domain like etc… You should get an ip back even if you don’t get successful pings (due to firewall etc). nslookup is also another quick and easy way to check DNS requests.

139 Replies to “Linux – Add DHCP and DNS”

  1. It is in point of fact a great and helpful piece of info. I am satisfied that you shared this helpful information with us. Please stay us up to date like this. Thanks for sharing.

  2. You really make it seem so easy with your presentation but I find this matter to be actually something that I think I would never understand. It seems too complex and extremely broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  3. I don’t even know how I ended up here, but I thought this post was great. I don’t know who you are but certainly you are going to a famous blogger if you are not already ;) Cheers!

  4. Good site! I really love how it is simple on my eyes and the data are well written. I’m wondering how I might be notified whenever a new post has been made. I’ve subscribed to your RSS feed which must do the trick! Have a great day!

  5. F*ckin’ tremendous things here. I am very happy to look your article. Thanks so much and i’m looking ahead to touch you. Will you kindly drop me a mail?

  6. I truly wanted to type a remark so as to say thanks to you for all of the remarkable concepts you are posting at this site. My extended internet search has at the end been compensated with useful facts to exchange with my pals. I ‘d repeat that we website visitors are very much lucky to dwell in a good website with so many marvellous professionals with beneficial tips. I feel truly blessed to have encountered your entire webpage and look forward to tons of more exciting moments reading here. Thanks a lot again for all the details.

  7. Great ¡V I should definitely pronounce, impressed with your site. I had no trouble navigating through all tabs as well as related info ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, site theme . a tones way for your client to communicate. Excellent task..

  8. Hello very cool site!! Man .. Excellent .. Wonderful .. I’ll bookmark your web site and take the feeds additionally¡KI am satisfied to search out numerous helpful info right here in the post, we want develop more techniques in this regard, thank you for sharing. . . . . .

  9. Definitely believe that which you said. Your favorite justification appeared to be on the internet the simplest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks

  10. I and also my friends have already been checking the great key points located on your web page and immediately I had a horrible suspicion I never expressed respect to the web blog owner for those tips. All the young men ended up as a result passionate to see all of them and already have pretty much been taking advantage of those things. Many thanks for being indeed accommodating and then for deciding on some fine subjects millions of individuals are really needing to be aware of. Our honest regret for not expressing gratitude to earlier.

  11. Hello.This post was really interesting, particularly because I was browsing for thoughts on this topic last couple of days.

  12. I would like to thnkx for the efforts you’ve put in writing this website. I’m hoping the same high-grade blog post from you in the upcoming as well. Actually your creative writing abilities has encouraged me to get my own site now. Really the blogging is spreading its wings fast. Your write up is a good example of it.

  13. Magnificent goods from you, man. I have understand your stuff previous to and you’re just extremely fantastic. I really like what you have acquired here, certainly like what you’re stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read much more from you. This is really a tremendous web site.

  14. Very good written article. It will be supportive to anyone who employess it, including yours truly :). Keep doing what you are doing – for sure i will check out more posts.

  15. Awsome info and right to the point. I don’t know if this is in fact the best place to ask but do you folks have any ideea where to hire some professional writers? Thank you :)

  16. Just desire to say your article is as amazing. The clearness in your post is simply cool and i could assume you’re an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the gratifying work.

  17. Fantastic beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  18. Hello there, just became alert to your blog through Google, and found that it’s really informative. I’m gonna watch out for brussels. I’ll appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers!

  19. I precisely needed to thank you very much again. I am not sure the things I would have made to happen without the opinions shown by you concerning such a area. This was the terrifying case in my view, nevertheless considering this expert technique you solved it made me to weep over joy. Now i am happy for your information and thus hope you are aware of a powerful job you happen to be doing educating the others with the aid of a web site. I’m certain you haven’t encountered all of us.

  20. I want to express my respect for your kindness supporting those people who really need assistance with that niche. Your very own dedication to getting the solution along had been extremely invaluable and have usually enabled girls like me to realize their endeavors. Your amazing interesting facts implies this much to me and a whole lot more to my peers. With thanks; from each one of us.

  21. Helpful information. Fortunate me I found your site unintentionally, and I am stunned why this twist of fate didn’t came about earlier! I bookmarked it.

  22. K7dNWD we came across a cool web site which you could love. Take a appear when you want

  23. SuwZYi Very interesting subject , regards for posting. What passes for optimism is most often the effect of an intellectual error. by Raymond Claud Ferdinan Aron.

  24. My brother recommended I might like this web site. He was entirely right. This post actually made my day. You can not imagine just how much time I had spent for this info! Thanks!

  25. I’m commenting to make you be aware of what a magnificent encounter my friend’s girl had reading your web site. She realized a good number of pieces, including how it is like to have a very effective coaching mood to have others very easily understand specified grueling subject matter. You truly exceeded readers’ expectations. Thanks for delivering such valuable, trustworthy, edifying and even fun tips on this topic to Lizeth.

  26. I’m so happy to read this. This is the type of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this greatest doc.

  27. Very efficiently written information. It will be valuable to everyone who employess it, as well as myself. Keep doing what you are doing – for sure i will check out more posts.