I'm facing a challenge here. Normally, setting up an A record for something like www.contoso.com is pretty straightforward. However, I'm hitting a wall since the external website has multiple sites hosted at the same IP and needs specific header information to work. Instead of properly going to www.contoso.com, it seems to resolve directly to contoso.com, which is causing conflicts. I've read up on this, and while I came across the idea of using a conditional forwarder, I don't think it will solve my problem. What are the best ways to configure this for users? I'm not a DNS expert, so any help is appreciated!
3 Answers
This is a common issue, especially if you're dealing with multiple sites on one IP. First off, you need to ensure that the web server is set up correctly to respond to requests for www.contoso.com. Different servers call this different things—like 'virtual host' in Apache. If that's not configured, you're out of luck. You might want to check on that first!
When you mention needing header info, do you mean the Host header? I've faced similar situations with my own server setup using ProxMox. The best way to handle this is with a reverse proxy like NGINX, which can manage the TLS at the edge and redirect requests properly to the right web apps behind it. This way, you can maintain both sites without conflict.
Are you looking for Server Name Indication (SNI)? Using an IP for a website can be tricky, especially with shared hosting. Make sure your A record is set up correctly, pointing www.contoso.com to the right IP. Just keep in mind that if your internal AD domain is contoso.com, you won't be able to send users to contoso.com for the website directly. That's where the issue lies!

Absolutely! That's usually the first step. If the server isn’t set to respond to www, any DNS changes won’t help.