summaryrefslogtreecommitdiff
path: root/dnszones
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-05-06 14:04:07 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-07 02:53:30 +0200
commit5d29f5d835fb2c31f564d936ff2550600b5c6f95 (patch)
tree5e5f1670be27bbeea19b05c91cb85f7dde5be8b3 /dnszones
parent728a02420e298400e680b843514b830c8db0cbab (diff)
downloadqtqa-5d29f5d835fb2c31f564d936ff2550600b5c6f95.tar.gz
Update the test zone to use test IP addresses.
Using Class E addresses was an interesting idea, but foiled by Microsoft Windows trying to be helpful. Empirical evidence shows that the getaddrinfo() call on Windows filters addresses in the 240.0.0.0/4 and 0.0.0.0/8 ranges. I couldn't be certain, but it seemed to filter the link-local IPv6 addresses too (fec0::/16). At least the test networks aren't filtered. For now... Change-Id: I613d99dff656526921731aa293318264f76383e6 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'dnszones')
-rw-r--r--dnszones/test.ZONEINFO58
1 files changed, 31 insertions, 27 deletions
diff --git a/dnszones/test.ZONEINFO b/dnszones/test.ZONEINFO
index 21b30a2..37da504 100644
--- a/dnszones/test.ZONEINFO
+++ b/dnszones/test.ZONEINFO
@@ -6,7 +6,7 @@
$TTL 60
@ IN SOA ns3.macieira.info. root.macieira.info. (
- 8 ; serial
+ 12 ; serial
10800 ; refresh (3 hours)
60 ; retry (1 min)
60 ; expire (1 min)
@@ -22,47 +22,51 @@ localhost IN A 127.0.0.1
IN AAAA ::1
; This zone matches the tests for QDnsLookup
-; Unless required for other reasons, all IPv4 addresses are in Class E
-; and all IPv6 addresses are in the deprecated site-local fec0::/64 domain.
-; This way, we're sure that we're not going to match anything in the global
-; Internet.
+
+; Unless required for other reasons -- specifically, the NS entries --
+; all IPv4 and IPv6 addresses should be in one of the test networks
+; reserved for testing and documentation. They are:
+; 192.0.2.0/24 TEST-NET-1 (RFC 5737)
+; 198.51.100.0/24 TEST-NET-2 (RFC 5737)
+; 203.0.113.0/24 TEST-NET-3 (RFC 5737)
+; 2001::db8::/32 IPV6-DOC-AP (RFC 3849)
; Make sure this never exists
; invalid -> always NXDOMAIN
; Simple record with one A only
-a-single IN A 240.0.0.1
+a-single IN A 192.0.2.1
; Simple record with multiple A records
-a-multi IN A 240.0.0.1
- IN A 240.0.0.2
- IN A 240.0.0.3
+a-multi IN A 192.0.2.1
+ IN A 192.0.2.2
+ IN A 192.0.2.3
; Simple record with one AAAA only
-aaaa-single IN AAAA fec0::1
+aaaa-single IN AAAA 2001:db8::1
; Simple record with multiple AAAA records
-aaaa-multi IN AAAA fec0::1
- IN AAAA fec0::2
- IN AAAA fec0::3
+aaaa-multi IN AAAA 2001:db8::1
+ IN AAAA 2001:db8::2
+ IN AAAA 2001:db8::3
; Record with one A and one AAAA
-a-plus-aaaa IN A 240.0.1.1
- IN AAAA fec0::1:1
+a-plus-aaaa IN A 198.51.100.1
+ IN AAAA 2001:db8::1:1
; Record with multiple A and AAAA entries
-multi IN A 240.0.1.1
- IN A 240.0.1.2
- IN AAAA fec0::1:1
- IN A 240.0.1.3
- IN AAAA fec0::1:2
+multi IN A 198.51.100.1
+ IN A 198.51.100.2
+ IN AAAA 2001:db8::1:1
+ IN A 198.51.100.3
+ IN AAAA 2001:db8::1:2
; MX record
mx-single IN MX 10 multi
mx-multi IN MX 10 multi
IN MX 20 a-single
-mx-multi-sameprio IN MX 10 multi
- IN MX 10 a-single
+mx-multi-sameprio IN MX 10 multi
+ IN MX 10 a-single
mx-single-cname IN MX 10 cname
; CNAME records
@@ -89,9 +93,9 @@ _echo._tcp.srv-prio IN SRV 1 0 7 multi
IN SRV 2 0 7 a-plus-aaaa
; multiple priorities, same weights, port 7 (echo)
_echo._tcp.srv-multi IN SRV 1 50 7 multi
- IN SRV 2 50 7 a-single
- IN SRV 2 50 7 aaaa-single
- IN SRV 3 50 7 a-multi
+ IN SRV 2 50 7 a-single
+ IN SRV 2 50 7 aaaa-single
+ IN SRV 3 50 7 a-multi
; TXT records
; TXT records can carry more than one string
@@ -101,8 +105,8 @@ txt-multi-multirr IN TXT "Hello"
txt-multi-onerr IN TXT "Hello" "World"
; A bit of everything, except what can't be in the same rrset
-everything IN A 240.0.3.1
- IN AAAA fec0::3:0
+everything IN A 192.0.2.4
+ IN AAAA 2001:db8::3:0
IN MX 0 everything
IN TXT "Hello World"
IN SRV 1 0 7 everything