Symptom
After you add an ingest domain and a streaming domain in ApsaraVideo Live, you must point each domain to the CNAME assigned by ApsaraVideo Live. This routes requests through ApsaraVideo Live nodes.
After you configure domain name resolution for both a root domain (example.com) and a subdomain (www.example.com), the root domain loads correctly but the subdomain fails to load. Direct access through the origin server works.
Cause
Both the root domain and the subdomain resolve to the same CNAME (example.com.w.alikunlun.com).
Each CNAME maps to exactly one domain. When two domains share the same CNAME, only one domain resolves correctly.
Solution
Reconfigure your CNAME records so that each domain points to its own CNAME. Choose one of the following options based on which domain you want to use.
Option A: Use the subdomain
Delete the CNAME record for the root domain (
example.com).Create a CNAME record that points
www.example.comtowww.example.com.w.alikunlun.com.
For detailed steps, see Configure a CNAME record.
Option B: Use the root domain
Delete the CNAME record for the subdomain (
www.example.com).Create a CNAME record that points
example.comtoexample.com.w.alikunlun.com.
Verify the fix
After you update your CNAME records, run dig to confirm that the domain resolves to the correct CNAME:
dig www.example.com +shortExpected output:
www.example.com.w.alikunlun.com.If the output still shows the old CNAME target, wait for DNS propagation and check again.
References
Applicable scope
ApsaraVideo Live
Domain name resolution