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,506
  • 4
  • 19
  • 36
Laischon
  • 21
  • 1
  • That sounds unexpected... what software is this? – Håkan Lindqvist Nov 02 '20 at 14:16
  • I used [Google dig](https://toolbox.googleapps.com/apps/dig/) , [dnschecker](https://dnschecker.org/) and "dig" command. The result is the same for everyone.. – Laischon Nov 02 '20 at 14:26
  • Sorry, I was more looking for "what produced these answers"? Seems weird, assuming that the question does not misrepresent the zone data. – Håkan Lindqvist Nov 02 '20 at 15:24
  • I opened a ticket on MisterDomain (our provider). I tried the same configuration on Gandi.net and all works fine.. I will add here other info if something happens. Thx – Laischon Nov 02 '20 at 16:45
  • 1
    "Any idea how to do it?" Provide the real names involved for people to double check. Otherwise there could be a lot of idle speculation and wrong directions. – Patrick Mevzek Nov 02 '20 at 23:10
  • 1
    Perhaps also provide your DNS hosting provider. The exact setup to get this working will probably depend on which provider you are using. – Tommiie Nov 04 '20 at 13:57

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,506
  • 4
  • 19
  • 36