djbdns
[Top] [All Lists]

tinydns and random order of MX Records

To: dns@list.cr.yp.to
Subject: tinydns and random order of MX Records
From: Andreas Schulze <andreas.schulze@datevnet.de>
Date: Tue, 12 Dec 2006 16:27:01 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello,

I'm new on the list but not new to djbdns ...

http://cr.yp.to/djbdns/tinydns-data.html says
"For versions 1.04 and above: tinydns returns addresses (from + or = or @ or . 
or & lines) in a random order in the answer section.
 If there are more than 8 records, it returns a random set of 8."

I could only reproduce the randomness for A-Records
But I _NEED_ it for my MX-Records...

an example data file:
- ---snip
.test.local:127.0.0.1:a:259200
@test.local:172.0.0.2:b
@test.local:172.0.0.3:c
@test.local:172.0.0.4:d
@test.local:172.0.0.5:e
@test.local:172.0.0.6:f
@test.local:172.0.0.7:g
@test.local:172.0.0.8:h
@test.local:172.0.0.9:i
@test.local:172.0.0.10:j
@test.local:172.0.0.11:k
=a.test.local:10.0.0.1
=a.test.local:10.0.0.2
=a.test.local:10.0.0.3
=a.test.local:10.0.0.4
=a.test.local:10.0.0.5
=a.test.local:10.0.0.6
=a.test.local:10.0.0.7
=a.test.local:10.0.0.8
=a.test.local:10.0.0.9
=a.test.local:10.0.0.10
- ---snap

 ... running tinydns-1.05 on 127.0.0.1 ...

# dig @127.0.0.1 a.test.local +short
gives me always 8 of 10 IP's for a.test.local in a random order

# dig @127.0.0.1 test.local MX +short
gives me always all 10 MX-Servers for the domain in the _SAME_ order as 
specified
in data file.

but I like a result like 'dig @pns.dtag.de. t-online.de MX +short'

Anybody can point me to the solution ?
Thanks !!!!

- -- 
Andreas Schulze

DATEV eG, Paumgartner Strasse 6-14, D - 90429 Nürnberg
Abt. Internet- und Securitydienste
 Telefon : +49 911 276 2648
 Telefax : +49 911 276 7892
   Mobil : +49 172 8122883
  E-Mail : andreas.schulze_at_datev.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFFfspFA7Vnk6fbpn8RAtk6AKCVLTpYB1s2eiwiNlTdm96ubvl5QACfUFRw
ZvSP4/OATHwdJzxQH0GEgEg=
=EYVb
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>