dns and multiple subnets

This is a discussion on dns and multiple subnets within the Linux Networking forums, part of the Linux Forums category; I have a configuration that for the sake of discussion looks like this: Internet----------- ...................| (forgive, google.) 10.0.0.0-&...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2005
Noah Roberts
 
Posts: n/a
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.

Reply With Quote
  #2 (permalink)  
Old 02-04-2005
Vincent Jaussaud
 
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: portsentry@jabber.kelkoo.net / 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

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



All times are GMT +1. The time now is 07:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0