0

I have two subdomains in amazon route53: *.bar.example.com and foo.bar.example.com and in the backend the two microservices they were hitting was different which we defined in ingress resource rules. When we hit foo.bar.example.com will it redirected to foo.bar service or will it redirect to wildcard service and viceversa?

1 Answers1

0

The wildcard is only the default value if nothing matches.

See https://en.wikipedia.org/wiki/Wildcard_DNS_record

This wildcard DNS record will cause DNS lookups on domain names ending in example.com that do not exist

(emphasis mine)

PS: there is no "redirection" in the DNS; this is a term existing at the HTTP layer.

Patrick Mevzek
  • 10,995
  • 16
  • 38
  • 54