|
||||||||
|
|
#1
|
|
I have a configuration that for the sake of discussion looks like this:
Internet----------- ...................| (forgive, google.) 10.0.0.0->[10.0.0.1 10.0.1.1]<-10.0.1.0 The box in the middle is a linux gateway/dns/dhcp. It is also a sort of captured portal based on a blackhole DNS (netreg). Currently I have all outbound traffic from unregistered hosts going to 10.0.0.1 from the 10.0.0.0 network. We want to add the 10.0.1.0 network and the only thing I can think of right now is that all captured traffic still has to go to 10.0.0.1 because I can't find a way to set up DNS to do both. Is there a way to use DNS and pass a particular IP based on the subnet of the requesting host? So that if 10.0.1.25 wanted www.google.com they would get IP 10.0.1.1 instead of 10.0.0.1. Current applicable settings are: named.conf: server 10.0.0.1 { bogus yes; }; options { directory "/var/bind"; pid-file "/var/run/named/named.pid"; }; db.root: $TTL 3600 .. IN SOA netreg.stmartin.edu root.netreg.stmartin.edu ( 2 ; serial 10800 ; refresh 3600 ; retry 604800 ; expire 86400 ; default_ttl ) IN NS netreg.stmartin.edu netreg 86400 IN A 10.0.0.1 *. 86400 IN A 10.0.0.1 So I would need something for *. that would go to 10.0.1.1 for the 10.0.1.0 network. Noah Roberts |
|
#2
|
|||
|
|||
|
> So I would need something for *. that would go to 10.0.1.1 for the > 10.0.1.0 network. You can do this with Bind 9.x. Have a look at named.conf man page, and search for "Resource Record sorting". Vincent. -- Kelkoo Security Manager / Networks & Systems Architect JID: (E-Mail Removed) / Vincent.Jaussaud.AT.kelkoo.DOT.net Kelkoo.com --- GNU/Linux Powered |
![]() |
| Tags |
| dns, multiple, subnets |
| Thread Tools | |
| Display Modes | |
|
|