I have read Multiple wildcard dns entries and know the limitations/drawbacks of wildcard DNS entries, but I have a question about the order in which it is listed by my registrar:
example.com A 192.0.2.1 (1)
test.example.com A 192.0.2.2 (2)
*.example.com A 192.0.2.3 (3)
test2.example.com A 192.0.2.4 (4)
More precisely:
Am I correct that (3) won't impact (1) and so the only A record for
example.com
is (1)?Is rule (2) overriden by rule (3), or will both rules apply for
test.example.com
(thus two A records for this subdomain)?As (4) is listed after (3), does this mean
test2.example.com
will have only one A record (192.0.2.4
) or two A records (both192.0.2.3
and192.0.2.4
)?
example.com
test.example.com
andtest2.example.com
will be answered by (2) and (4) respectively.So to sum it all up, only if a query comes in for let's say
foobar.example.com
will it be matched with your wildcard record.