- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
DNS doesn't work that way. There is no evaluative logic that exists the way it might for networking CIDR blocks or the like.
You can't reliably have *. and staging. for the same domain.
I suggest modifying your DNS or routing all *. to a load balancer than can then use Application Delivery Control (e.g. in ALB, it would be using rules based on host) for routing.
con risposta 8 anni fa
DNS does work that way. Wildcards can get complicated, but having "*.example.com" and "foo.example.com" is fine and can work reliably.
I just tried it with Route 53 -- using non-alias TXT records -- and it worked fine.
There might be a caching issue, or some other misconfiguration, or maybe a limitation with Route 53 alias records, but in general it's fine.
con risposta 8 anni fa
