Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux-Router with iptables -- DNS???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
goldeneye
n00b
n00b


Joined: 22 Mar 2003
Posts: 12
Location: Berlin, Germany

PostPosted: Sun Apr 06, 2003 9:39 pm    Post subject: Linux-Router with iptables -- DNS??? Reply with quote

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
View user's profile Send private message
el*Loco
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 91
Location: Cologne, Germany

PostPosted: Sun Apr 06, 2003 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
de4d
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 181
Location: fr. i. br. (ger)

PostPosted: Mon Apr 07, 2003 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
goldeneye
n00b
n00b


Joined: 22 Mar 2003
Posts: 12
Location: Berlin, Germany

PostPosted: Mon Apr 07, 2003 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum