troubleshooting Question

DNS CNAME records visibility on a web server

Avatar of AnthonyWalker
AnthonyWalker asked on
DNSMicrosoft IIS Web ServerApache Web Server
2 Comments1 Solution271 ViewsLast Modified:
Have a question about DNS CNAME records and what web servers see. (unfortunately I don't have an environment where I can just test this)

if I have the following domain names:

I can create them all as A records pointing directly to the IP address and the web server sees whatever the user types in the browser and everything works as planned.

But to simplify life I'd like to create one of these as the "primary" domain name as an A record and the others as an "alias" domain name with a CNAME record.
So if is an A record and is a CNAME to what does the web server see what the user types in ?
Does it see or ?

Does it depend on the type of web server?
Or does DNS just work it's magic in resolving the domain names to an IP and the web server doesn't know anything about it?
Dr. KlahnPrincipal Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros