Thanks Kyle,
Ok, restored the DNS settings for internal server and now both
HTTPS:// web browsers addresses resolve to the webmail login. Added the host files entry just in case the registry hack doesn't stop it going to O365.
Re-Ran the autodiscovery tool and got this.
2021-01-27T19:10:14 :: Getting a list of AutoDiscover urls to use...
2021-01-27T19:10:14 :: Getting currently configured DNS servers from host...
2021-01-27T19:10:14 :: DNS IP: 192.168.10.1
2021-01-27T19:10:14 :: DNS IP: 192.168.10.100
2021-01-27T19:10:14 :: Attempting to determine the AutoDiscover endpoint to use.
2021-01-27T19:10:14 :: Skipping Office 365 checks due to registry option: ExcludeExplicitO365Endpoint
2021-01-27T19:10:14 :: Checking local domain SCP records, if host is domain joined.
2021-01-27T19:10:16 :: No SCP records found.
2021-01-27T19:10:16 :: Re-checking local domain SCP records using mail domain as endpoint.
2021-01-27T19:10:38 :: SCP lookup failed with: The server is not operational.
2021-01-27T19:10:38 :: No SCP records found.
2021-01-27T19:10:38 :: No SCP information found.
2021-01-27T19:10:38 :: Search for locally cached AutoDiscover.xml files.
2021-01-27T19:10:38 :: Found 3 files
2021-01-27T19:10:38 :: End of cached files analysis
2021-01-27T19:10:38 :: Adding http://domain-name.com/autodiscover/autodiscover.xml to list of redirection test hosts
2021-01-27T19:10:38 :: Adding https://domain-name.com/autodiscover/autodiscover.xml to list of redirection test hosts
2021-01-27T19:10:38 :: SRV query returned 1 records
2021-01-27T19:10:38 :: mail.domain-name.com.
2021-01-27T19:10:38 :: Calculated the following 7 urls for AutoDiscover lookup, and will be queried in the order listed...
2021-01-27T19:10:38 :: 0. ROOT: https://domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: 1. AUTOD: https://autodiscover.domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: 2. REDIRECT: http://domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: 3. REDIRECT: http://autodiscover.domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: 4. REDIRECT: https://domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: 5. REDIRECT: https://autodiscover.domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: 6. SRV: https://mail.domain-name.com./autodiscover/autodiscover.xml
2021-01-27T19:10:38 ::
2021-01-27T19:10:38 ::
2021-01-27T19:10:38 :: Starting XML requests...
2021-01-27T19:10:38 :: Attempting Root Domain AutoDiscover query using https://domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: Setting request type to EmailAddress
2021-01-27T19:10:38 :: Request XML will be:
2021-01-27T19:10:38 ::
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">;
<Request>
<EMailAddress>Username@domain-name.com</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>;
</Request>
</Autodiscover>
2021-01-27T19:10:38 :: Request will be sent to: https://domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: HttpWebRequest object created
2021-01-27T19:10:38 :: HttpWebRequest set to allow auto redirect
2021-01-27T19:10:38 :: HttpWebRequest set to POST method
2021-01-27T19:10:38 :: HttpWebRequest ContentType set to 'text/xml'
2021-01-27T19:10:38 :: HttpWebRequest UserAgent set to Microsoft Office/14.0 (Windows NT 6.2; Microsoft Outlook 14.0.7015; Pro)
2021-01-27T19:10:38 :: HttpWebRequest Headers set to the following to request mapiHTTP details:
2021-01-27T19:10:38 :: X-MapiHTTPCapability=1
2021-01-27T19:10:38 :: X-ClientCanHandle=Negotiate
2021-01-27T19:10:38 :: Set integrated authentication using: Username@domain-name.com/•••••••••••••••••
2021-01-27T19:10:38 :: Communicating with remote host...this can take a few seconds to a minute or more...please wait..
2021-01-27T19:10:38 :: Wrote xml request data to the http request object.
2021-01-27T19:10:38 :: Sending request to the server...please wait...
2021-01-27T19:10:38 :: Error when sending request to server:
System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at AutoDiscoverXMLTool.frmMain.GetAutodiscoverXML(String user, String url, NetworkCredential creds, Boolean RequestMapiHttp, String UserAgent, Dictionary`2 AdditionalHeaders, Boolean UseBasicAuth)
2021-01-27T19:10:38 ::
2021-01-27T19:10:38 :: Attempting AutoDiscover Prefixed Domain AutoDiscover query using https://autodiscover.domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: Setting request type to EmailAddress
2021-01-27T19:10:38 :: Request XML will be:
2021-01-27T19:10:38 ::
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">;
<Request>
<EMailAddress>Username@domain-name.com</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>;
</Request>
</Autodiscover>
2021-01-27T19:10:38 :: Request will be sent to: https://autodiscover.domain-name.com/autodiscover/autodiscover.xml
2021-01-27T19:10:38 :: HttpWebRequest object created
2021-01-27T19:10:38 :: HttpWebRequest set to allow auto redirect
2021-01-27T19:10:38 :: HttpWebRequest set to POST method
2021-01-27T19:10:38 :: HttpWebRequest ContentType set to 'text/xml'
2021-01-27T19:10:38 :: HttpWebRequest UserAgent set to Microsoft Office/14.0 (Windows NT 6.2; Microsoft Outlook 14.0.7015; Pro)
2021-01-27T19:10:38 :: HttpWebRequest Headers set to the following to request mapiHTTP details:
2021-01-27T19:10:38 :: X-MapiHTTPCapability=1
2021-01-27T19:10:38 :: X-ClientCanHandle=Negotiate
2021-01-27T19:10:38 :: Set integrated authentication using: Username@domain-name.com/•••••••••••••••••
2021-01-27T19:10:38 :: Communicating with remote host...this can take a few seconds to a minute or more...please wait..
2021-01-27T19:10:38 :: Wrote xml request data to the http request object.
2021-01-27T19:10:38 :: Sending request to the server...please wait...
2021-01-27T19:10:38 :: Response received from server...
2021-01-27T19:10:38 :: Server responded with a status code of 200 [OK].
2021-01-27T19:10:38 :: Retrieved response data...
Tried to run the Outlook account creation and it located the server (i think) but once again it fails with windows security login. it results in a loop as though wrong password was submitted.