Networking Forums

Networking Forums > Computer Networking > Linux Networking > DNS without internet

Reply
Thread Tools Display Modes

DNS without internet

 
 
pantomas
Guest
Posts: n/a

 
      10-12-2003, 01:05 AM
I have a standalone linux box without internet connection.
It should redirect all http requests to a single information page.
The problem is with dns.
Is it possible to configure some dns server which will return always the
same addr?
www.cnn.com -> 192.168.1.1
www.yahoo.com -> 192.168.1.1

Or maybe some other solution?

thanks

 
Reply With Quote
 
 
 
 
Michael Fuhr
Guest
Posts: n/a

 
      10-12-2003, 01:27 AM
pantomas <(E-Mail Removed)> writes:

> I have a standalone linux box without internet connection.
> It should redirect all http requests to a single information page.
> The problem is with dns.
> Is it possible to configure some dns server which will return always the
> same addr?
> www.cnn.com -> 192.168.1.1
> www.yahoo.com -> 192.168.1.1


You could do this with a wildcard A record. Did you miss the uproar
about VeriSign's recent stunt? :-)

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
 
Reply With Quote
 
William Park
Guest
Posts: n/a

 
      10-12-2003, 05:48 AM
pantomas <(E-Mail Removed)> wrote:
> I have a standalone linux box without internet connection.
> It should redirect all http requests to a single information page.
> The problem is with dns.
> Is it possible to configure some dns server which will return always the
> same addr?
> www.cnn.com -> 192.168.1.1
> www.yahoo.com -> 192.168.1.1
>
> Or maybe some other solution?


Well, you can do anything locally. Just edit /etc/named.conf and create
zone files for <cnn.com> and <yahoo.com>. Then, all your machine will
think that you're authoritative nameserver for those domains.

--
William Park, Open Geometry Consulting, <(E-Mail Removed)>
Linux solution for data management and processing.
 
Reply With Quote
 
Michael Fuhr
Guest
Posts: n/a

 
      10-12-2003, 05:50 PM
William Park <(E-Mail Removed)> writes:

> pantomas <(E-Mail Removed)> wrote:
> > I have a standalone linux box without internet connection.
> > It should redirect all http requests to a single information page.
> > The problem is with dns.
> > Is it possible to configure some dns server which will return always the
> > same addr?
> > www.cnn.com -> 192.168.1.1
> > www.yahoo.com -> 192.168.1.1
> >
> > Or maybe some other solution?

>
> Well, you can do anything locally. Just edit /etc/named.conf and create
> zone files for <cnn.com> and <yahoo.com>. Then, all your machine will
> think that you're authoritative nameserver for those domains.


This will work only if you create zones for all expected domains;
it won't work if the requirement means that requests to sites not
known in advance should also be redirected. Some possible ways to
redirect *all* requests are:

1. Use wildcard records in DNS. See the debate over VeriSign's
recent use of wildcards for some of the problems they can cause.

2. Require all HTTP requests to go through a proxy that's configured
to respond identically to every request.

3. Redirect HTTP requests at the network layer using a firewall or
other packet filtering/forwarding mechanism.

All of these possibilities have potential problems and limitations;
you'll have to evaluate which, if any, best fits your requirements.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
 
Reply With Quote
 
Lew Pitcher
Guest
Posts: n/a

 
      10-13-2003, 12:10 AM
pantomas wrote:
> I have a standalone linux box without internet connection.
> It should redirect all http requests to a single information page.
> The problem is with dns.
> Is it possible to configure some dns server which will return always the
> same addr?
> www.cnn.com -> 192.168.1.1
> www.yahoo.com -> 192.168.1.1
>
> Or maybe some other solution?


Add them to your /etc/hosts file, as in

127.0.0.1 localhost
192.168.1.1 www.cnn.com www.yahoo.com



--
Lew Pitcher

Master Codewright and JOAT-in-training
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.

 
Reply With Quote
 
Vincent Fox
Guest
Posts: n/a

 
      10-13-2003, 01:21 PM
*snip*

Take a look at dnsmasq. The nice thing about it is that
it is intended for small operations so config is simple.
Unlike BIND the full-up which is intended for the very
large so it is a beast to set up. The dnsmasq process can
just pick up host entries from /etc/host for example.

http://thekelleys.org.uk/dnsmasq/doc.html


--
Vincent Fox
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!pri sm!vf5
Internet: (E-Mail Removed)
 
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
inception of the wheel. The DeLorean DMC-12 failed as an auto butsucceeded <br> </p>alt.internet.search-engines, alt.internet.wireless jersey-2009 Wireless Internet 0 06-05-2011 01:37 AM
Wanted Indian Internet workers. Earn Rs.2000 daily from internet. love Broadband 0 04-01-2009 07:39 AM
system intrusion through the internet/wireless internet and computer protection jrefactors@hotmail.com Wireless Internet 3 09-12-2005 06:20 PM
Internet Gateway device created in Network Connections when I removed Internet Connection Sharing Martin Underwood Home Networking 2 04-07-2005 12:56 PM
A Walkman, an Internet enabled computer upstairs. What else I need to listen to Internet Radio while cooking in a kitchen? George Kooper Wireless Internet 9 12-08-2003 02:13 PM



1 2 3 4 5 6 7 8 9 10 11