Create CNAME records for a subdomain
Add a CNAME record by using the CLI
- add dns cnameRec <aliasName> <canonicalName> [-TTL <secs>]
- show dns cnameRec <aliasName>
> add dns cnameRec www.example.com www.examplenw.com
Done
> show dns cnameRec www.example.com
Alias Name Canonical Name TTL
1) www.example.com www.examplenw.com 5 secs
Done
rm dns cnameRec command and the alias of the domain name.
Add a CNAME record by using the GUI
Cache CNAME records
-
NetScaler must be deployed in a proxy mode.
-
The response from the back-end server must have a CNAME chain, for which the record type of the last entry in the answer section must be a CNAME and the question type not a CNAME.
-
The response from the back-end server cannot be a No-data or NX-Domain.
-
The response from the back-end server has to be an authoritative response.