Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-08-2011, 10:17 PM   #1
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 261
Blog Entries: 2

Rep: Reputation: 30
Setting up a DNS server for hosts both on the Internet and on a private network

I have the domain I have a web server and mail server being hosted out on the Internet. and The domain is registered and I am using my registar's name servers. Everything is working fine.

In my house I also have the domain name I have the computers named,, I also have several virtual machines running on my home network.

In the past I have just updated hosts files as needed. But it is getting too hard to keep all the hosts files in sync. I am looking for a central host file. I am trying to learn DNS and Bind. I am running Slackware 13.1 on an old P3.

I understand the caching DNS server and it works fine. I'm somewhat comfortable with setting up a DNS server, but I am confused as how do I setup a server for looking up my home network address and resolve those, and at the same time look up like and resolve it.

I am not wanting to setup a DNS server for Internet access, my ISP seems to have that covered. I can set up forwarding to my ISP's servers to lookup Internet addresses. But how do I configure Bind not to look up addresses for my internal hosts? Can I give it a list of all my internal host names to search through first?

Old 03-08-2011, 10:47 PM   #2
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
I have same kind of setup for my home network

On every host/computer, file /etc/resolv.conf have the first line point to your local nameserver (must be your local DNS) e.g.

nameserver IP_for_your_local_DNS server (to resolve names for your internal hosts)
nameserver IP for_your_service provider DNS server (to access Internet)

How to setup your own DNS and DHCP server. Please read the post on my blog

I hope it will help

Last edited by KinnowGrower; 03-08-2011 at 10:49 PM.


dns, dnsserver

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up private Network in VMware ESX Server? your_shadow03 Linux - Newbie 0 07-17-2009 07:26 AM
DNS for private network ekalavya Linux - Newbie 3 07-03-2009 02:03 AM
DNS Server (bind9) works on the private network but not in the public one! wjleon Linux - Networking 26 01-24-2009 08:14 PM
Setting Up A Caching DNS Server on a Private Network kaplan71 Linux - Networking 4 04-25-2006 04:53 PM
Setting up gateway to share internet for private LAN muru Linux - Networking 6 09-17-2005 08:08 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration