View previous topic :: View next topic |
Author |
Message |
goldeneye n00b
Joined: 22 Mar 2003 Posts: 12 Location: Berlin, Germany
|
Posted: Sun Apr 06, 2003 9:39 pm Post subject: Linux-Router with iptables -- DNS??? |
|
|
I am setting up a Gentoo Linux Box as a DSL router and I got problems with the DNS.
I am using iptables for forwarding, but how is DNS solved on a "normal" router? Do I need a nameserver running on that box, to let the other clients in my private network resolve hostnames in the internet, and if yes, which one is the best for that rather simple work (I dont need a nameserver for the private LAN)? Or is it possible to do all DNS by an iptables rule?
I have googled like crazy, but I cant figure out, how you typically do this... |
|
Back to top |
|
|
el*Loco Tux's lil' helper
Joined: 29 Jan 2003 Posts: 91 Location: Cologne, Germany
|
Posted: Sun Apr 06, 2003 9:53 pm Post subject: |
|
|
Check out "dnsmasq":
Code: |
* net-dns/dnsmasq
Latest version available: 1.6
Latest version installed: 1.6
Size of downloaded files: 39 kB
Homepage: http://www.thekelleys.org.uk/dnsmasq/
Description: Proxy DNS server
|
|
|
Back to top |
|
|
de4d Apprentice
Joined: 12 Sep 2002 Posts: 181 Location: fr. i. br. (ger)
|
Posted: Mon Apr 07, 2003 9:51 am Post subject: |
|
|
if u dont need any sophisticated name server solution, just put in your ISPs name server ip into your clients /etc/resolv.conf.
neway, i'd set up a local bind to set up a local domain and make reverse lookups possible (think about it :) _________________ void main(){fork();main();} |
|
Back to top |
|
|
goldeneye n00b
Joined: 22 Mar 2003 Posts: 12 Location: Berlin, Germany
|
Posted: Mon Apr 07, 2003 2:27 pm Post subject: |
|
|
Well, dnsmasq is doing a great job!
Thanx!
Quote: | just put in your ISPs name server ip into your clients /etc/resolv.conf |
I wanted to avoid that, because if one of the isp's nameservers is not working or if they are changing you'd have to edit this in all your clients.
No way. |
|
Back to top |
|
|
|