PDA

View Full Version : Serving DNS for internal "domain" via poptop



Chilling_Silence
06-04-2010, 08:37 PM
Hi all,

So I've got a VPN service (We'll call it domain.com)
What I'm wanting is so that when users are connected, my internal DNS overrides their current stuff, so if they then look up domain.com and server1.domain.com that it points them to an internal IP of 192.168.217.1 instead of the public IP Address.

What's the easiest way to do this in Linux? Do I need to go through and setup a full-blown DNS server? Or is there a "smarter" way for me to do this?
If I'm going for a full DNS, any recommendations on one that's easy to setup that I won't have to mess around with a lot? :D

Thanks


Chill.

Erayd
06-04-2010, 09:04 PM
Go with PowerDNS :D.

By the way, give me a shout when you've got a mo - we need to talk servers.

fred_fish
06-04-2010, 10:51 PM
dnsmasq may suit.


Description: A small caching DNS proxy and DHCP/TFTP server
Dnsmasq is a lightweight, easy to configure, DNS forwarder and DHCP server. It
is designed to provide DNS and optionally, DHCP, to a small network. It can
serve the names of local machines which are not in the global DNS. The DHCP
server integrates with the DNS server and allows machines with DHCP-allocated
addresses to appear in the DNS with names configured either in each host or in
a central configuration file. Dnsmasq supports static and dynamic DHCP leases
and BOOTP/TFTP for network booting of diskless machines.

I've been using it in my small LAN routers for years and it is very easy to configure & pretty bulletproof.
Now I think about it, it is probably what is used in most off the shelf modem/routers as well.

Erayd
07-04-2010, 01:04 AM
Dnsmasq is good, provided you're only serving a handful of authoritative records, and don't need a dynamic backend. It doesn't scale well.

I've also experienced annoying stability issues with it in the past (random segfaults every few days), and occasional memory leaking.