Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

dns and multiple subnets

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2005, 04:50 PM
Default dns and multiple subnets



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
Reply With Quote
  #2  
Old 02-04-2005, 10:54 AM
Vincent Jaussaud
Guest
 
Posts: n/a
Default Re: dns and multiple subnets


> 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

Tags
dns, multiple, subnets

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
Forum Jump


All times are GMT. The time now is 06:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.