LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


I have the domain confused.com. I have a web server and mail server being hosted out on the Internet. www.confused.com and mail.confused.com. 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 confused.com. I have the computers named desk.confused.com, laptop.confused.com, dads.confused.com. 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 google.com 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?

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

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

http://varinderjhand.wordpress.com/2...ated-firewall/

I hope it will help

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


Reply

Tags
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


All times are GMT -5. The time now is 05:52 AM.

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