Richard Doyle wrote:
> Since nobody has answered this...
> 
> On Sat, 2007-05-19 at 13:11 -0700, Brent Gardner wrote:
>> I want to set up an authoritative DNS server that listens on both UDP 
>> and TCP for one of my domains.  I'm using tinydns with dnscache and 
>> daemontools on Bering uClibc v3.0.2.  I've got it working successfully 
>> in a test environment.
>>
>> The box has one NIC.  Tinydns listens on 127.0.0.1 UDP 53.  Dnscache is 
>> configured to forward only to this address.  Dnscache listens on the 
>> NIC's IP address on TCP 53 and UDP 53.
>>
>> Other machines on the test network can query DNS on TCP 53 or UDP 53.
>>
>> Where my test network has addresses in the form of AAA.BBB.CCC.DDD, I 
>> have AAA on a line by itself in /etc/dnscache/env/IPQUERY to allow 
>> queries from machines on my test network.
> Um, is there something in the source that makes you think dnscache ought
> to read this file? In fact, google gives just your message when queried
> about "dnscache ipquery" !
> 
Of course, dnscache doesn't itself read the ipquery file.  The ipquery 
file is a tool used to simplify dnscache configuration in the LEAF 
environment.

> 
>> I want to allow queries from any machine on any network.  I have been 
>> able to accomplish this by putting 256 lines in 
>> /etc/dnscache/env/IPQUERY, each with its own value, values running from 
>> 0 to 255.  Is there a more elegant way to do this?  Entries I have tried 
>> that do not seem to work: <blank>, 0, 0.0.0.0, 255, 255.255.255.255, *, 
>> *.*.*.*, @.
> This is normally set by creating files in /etc/dnscache/root/ip :
>    touch /etc/dnscache/root/ip/AAA
> 
/etc/init.d/dnscache does this touching for us, based on the contents of 
the ipquery file.  Thank you, J. Nilo!

> Apologies if this is incorrect. Authoritative words come from
> http:/cr.yp.to
> 
I guess my question essentially boiled down to, "Is there a more elegant 
way to get dnscache to allow queries from any IP address than to have 
256 files named 0 to 255 in /etc/dnscache/root/ip?"  The answer to this 
is probably more appropriately sought in djb-land.  My solution is 
working as desired so I've moved on to other projects.  If I every find 
a better way I'll post back to the list.

Thanks.

Brent Gardner


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to