[prev in list] [next in list] [prev in thread] [next in thread] 

List:       djbdns
Subject:    Re: default answer
From:       "David Phillips" <david () acz ! org>
Date:       2004-04-08 2:17:06
Message-ID: 007001c41d0f$970e2ca0$0201a8c0 () brinstar
[Download RAW message or body]

Nick writes:
> If I wanted to answer every request the came to my DNS server
> with 192.168.1.1 How could I add this to my data file?
>
> At first I thought something like +*.com would work, But
> it does not. I want to direct every internal user to a
> portal page regardless of what they lookup. Can anyone
> tell me how I would put this into my data file?

You probably don't want to be using DNS to do this.  Users could still
access outside sites using IP addresses, host files, their own DNS cache,
etc.  A better way would be to redirect all HTTP traffic to your own web
server.

To do it the DNS way, setup tinydns on 127.0.0.1 and use this for your data
file (this has 60 second TTLs):

.:127.0.0.1:ns.internal:60
+*:192.168.1.1:60

Then set dnscache to use tinydns for everything:

echo 127.0.0.1 > /service/dnscache/root/servers/@
svc -t /service/dnscache

-- 
David Phillips <david@acz.org>
http://david.acz.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic