LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setup dns server own network (https://www.linuxquestions.org/questions/linux-newbie-8/setup-dns-server-own-network-805411/)

chaiwei 05-02-2010 02:42 AM

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

acid_kewpie 05-02-2010 03:12 AM

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.

vickey_n 05-02-2010 03:13 AM

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

chaiwei 05-02-2010 11:22 PM

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.

acid_kewpie 05-03-2010 03:43 AM

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.

TimothyEBaldwin 05-03-2010 06:52 AM

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.


All times are GMT -5. The time now is 02:17 PM.