1

I have a problem with this DNS configuration:

RecordType - Name              - Value
A            *.domain.com        1.1.1.1
A            *.sub.domain.com    2.2.2.2

I would like all subdomains of * .sub.domain.com to point to 2.2.2.2 and everything else to point to 1.1.1.1.

But i if I check test.sub.domain.com both records are active. That's not good.

opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
test.sub.domain.com. IN A
;ANSWER
test.sub.domain.com. 3599 IN A 1.1.1.1
test.sub.domain.com. 3599 IN A 2.2.2.2
;AUTHORITY
;ADDITIONAL

Any idea how to do it?

Stuggi
  • 3,656
Laischon
  • 21
  • 1

1 Answers1

2

I'd wager this is some caching issue, as the more specific wildcard should always be the "winning" one. Check using dig @server directly from your name servers and see if you still get that response. If so, you have probably found a bug in your DNS provider's DNS software.

Stuggi
  • 3,656