SAM.Am
SAM.Am

Reputation: 222

How to map a URL address to a FQDN through CNAME dns records

I created a subdomain sub.domain.com. then I issued a certificate forit. NOw, I want to add a Cname to map a URL address Lms-traffic.manager.net. to the full FQDN of my subdomain.
HOw should I proceed?

Upvotes: 0

Views: 2874

Answers (1)

Phillip Williams
Phillip Williams

Reputation: 476

A DNS CNAME is an ALIAS for a domain name. A way to set the ip address depending on another name to get its. it does not do redirects.

the URL record is for a redirect , but will not pass any parameters, just the domain name.

You can do a redirect at the host server... httpd.conf file or .htaccess

for example. apache... SEE https://httpd.apache.org/docs/2.4/rewrite/remapping.html

I suggest doing the redirect at the web server host, because you have a lot more control of what to pass, and where it goes to. and could do it in the .htaccess file.

Upvotes: 1

Related Questions