I believe this is a simple question, I thank you in advance for clearing it up for me.
Using this example:
foo.domain.com CNAME bar.example.com
bar.example.com A 192.168.1.19
The client requests foo.domain.com in their browser.
Does the name lookup simply resolve to 192.168.1.19 and their request is made to the server at that address with host header foo.domain.com? Or are they actually redirected and their request is made with host header bar.example.com?
Do I need to configure the server to listen on the new host name (foo.domain.com), with a valid SSL cert for it, etc? Or is the existing configuration for bar.example.com sufficient?