2 個答案
- 最新
- 最多得票
- 最多評論
0
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.
已回答 7 年前
0
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.
已回答 7 年前
相關內容
- 已提問 3 個月前
- 已提問 2 年前
