Commit a794fcc
committed
fix(namecheap): use full app domain for CNAME instead of underscore wildcard
Namecheap's DNS servers don't serve CNAME records pointing to underscore-prefixed
domains (e.g., _.dstack-pha-prod9.phala.network). The record appears in the
Namecheap API but isn't visible in public DNS queries.
This fix detects when DNS_PROVIDER=namecheap and GATEWAY_DOMAIN starts with an
underscore, then substitutes the full app-specific domain instead:
Before: _.dstack-pha-prod9.phala.network
After: {app_id}-{port}.dstack-pha-prod9.phala.network
Both resolve to the same IP, and the TXT records handle app routing, so
functionality is preserved.
Tested with hermes.teleport.computer - custom domain now resolves correctly.1 parent 386a2e9 commit a794fcc
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
182 | 199 | | |
183 | 200 | | |
184 | 201 | | |
185 | | - | |
| 202 | + | |
186 | 203 | | |
187 | 204 | | |
188 | 205 | | |
| |||
0 commit comments