I was about to roll out our new Exchange 2019 setup...everything seemed good. After installing our new certificate, I was confirming all was well, and autodiscover is showing odd behavior when run from internal hosts. Our internal domain is exch.corp.com and external is corp.com. I have internal DNS records for autodiscover.corp.com, mail.corp.com, and corp.com that all point to the IP address of our loadbalancer (I have tried bypassing the LB, that doesn't seem to be the issue). All resolve correctly. I ran the appropriate PowerShell command to set the SCP correctly. Yet, when I try to setup a new Outlook profile, autodiscover is somehow finding a record on the internet from our email host and thinks I have an IMAP account, and then shows the login info for our mail provider's email service. I have no idea where this is coming from -- I've tried sniffing traffic, looking at DNS logs, etc. but I can't see an external query. But if I remove the DNS server from the client and make static entries for the relevant names, it works fine (sort of, see below), and if I remove all of the forwarders from the DNS server, it works fine (again, sort of). So where is this autodiscover info coming from? What is it checking before the entries I already have?
When I said it works fine, it does still pop up a dialog asking me to select an account type, which I don't think should be happening. But after I select Exchange it works, although I do need to explicitly enter user@exch.corp.com as the account, it isn't autopopulated.
Any suggestions?