Re: Bind Zone Data

Alessandro Vesely <[email protected]> Wed, 04 Nov 2009 19:43:00 +0100
Newsgroups gmane.mail.spam.spf.devel
Message-ID <[email protected]>
William Ahern wrote:
> Is there a DNS server up somewhere that can provide answers according to the
> regression suite zone data? (Perhaps this isn't feasible because of the way
> the test suite reuses example.com sub-domains; I haven't looked closely
> enough.)

If memory serves, that's not the case indeed. What I have done is to 
run a quick&dirty DNS server that answers queries based on the test 
suite's scenarios. You need the ability to configure the DNS address 
for the program under test.

> Short of that, does anybody have any scripts to generate BIND zone files
> from the test suite?

I wrote a C file to test Courier-MTA's implementation. You can find 
that file in http://www.ext.tana.it/courier-spf-test-suite.c and its 
output in 
http://www.mail-archive.com/[email protected]/msg33232.html

The C file probably won't compile at yours, as it needs some courier 
libs. However, you may be able to reuse some functions/ideas, such as, 
e.g.

    ip addr add 127.0.0.2/8 dev lo broadcast + scope host

I hadn't tested IPv6.

Good luck!