LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2010, 02:42 AM   #1
chaiwei
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
setup dns server own network


I want to setup a DNS server in my LAN,
Here is my details.

I am hosting my own server in my office and all the pc are sharing the same line.
Let say my domain name was xyz.com, so when I am in office I must use 192.168.2.4, instead of xyz.com, some linux guru in the forum told me I have two ways to solve it, once is setup a dns server and another 1 is manually edit each pc host file.

But how can I setup a DNS server?
I got 1 ubuntu server, 1 ubuntu gateway.
my internet line connect to ubuntu gateway and then from gateway distributed to servers and other pc.

So I need to setup DNS server in a new server or I can setup in the gateway?

Thanks and appreciate your comments.

regards,
chaiwei
 
Old 05-02-2010, 03:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Sorry to state the obvious, but you set up a DNS server by choosing a DNS server and configuring it accordingly. For such a small scale implementation, I'd suggest you might well get away with a trivial DNS service like dnsmasq. All your machines point their DNS to that machine, and then that machine resolves if it can, and if not, goes to the internet.
 
Old 05-02-2010, 03:13 AM   #3
vickey_n
LQ Newbie
 
Registered: Nov 2009
Posts: 21
Blog Entries: 1

Rep: Reputation: 3
configure linux dns server step by step guide Example and Implementation

To set DNS server in local network use this link. They provide step by step configuration for setting up DNS master and slave server in local area network and this article also cover how to configure client for dns server.

For master server follow

http://computernetworkingnotes.com/r...dns_server.htm

For Slave server follow

http://computernetworkingnotes.com/r...ave_server.htm
 
Old 05-02-2010, 11:22 PM   #4
chaiwei
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
So you mean I need to setup another PC just for DNS server right?
so I got 3 Machine, 1 is gateway, another 1 is server, and another 1 is DNS server.

Thanks to acid_kewpie and vickey_n, your comments and helped are greatly appreciated.
 
Old 05-03-2010, 03:43 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you don't need another dedicated to it at all, no. Any server will do, possibly this machine you're already running this web service on.
 
Old 05-03-2010, 06:52 AM   #6
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Running your own DNS server is not going to solve this reliably or securely. If your DNS record is used outside your network your server won't be reachable, this could happen due to caches in mobile computers, or by malicious action which will otherwise be prevented by DNSSEC.
 
  


Reply


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
How to setup Linux DNS server for a small office/home network? lhnw08 Linux - Server 16 07-24-2009 06:35 AM
Setup DNS server on Ubuntu 7.04 Server edition using Bind 9 breezey Linux - Server 2 09-16-2007 03:36 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM


All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration