Networking Forums

Networking Forums > Computer Networking > Linux Networking > dns and multiple subnets

Reply
Thread Tools Display Modes

dns and multiple subnets

 
 
Noah Roberts
Guest
Posts: n/a

 
      02-03-2005, 03:50 PM
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.

 
Reply With Quote
 
 
 
 
Vincent Jaussaud
Guest
Posts: n/a

 
      02-04-2005, 09:54 AM

> 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
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP for multiple subnets Jorge Azcuy Windows Networking 7 07-25-2007 08:20 PM
multiple subnets stueken@conterra.de Linux Networking 5 10-09-2006 09:57 AM
Help with samba and multiple subnets Dani Camps Linux Networking 0 03-08-2005 02:42 PM
SMB networking and multiple subnets Dani Camps Linux Networking 1 02-23-2005 09:08 PM
iptables, NAT and multiple subnets - how? ERACC Linux Networking 1 10-06-2003 11:43 PM



1 2 3 4 5 6 7 8 9 10 11