Configure a Public AD FS Namespace for Microsoft 365 Single Sign-On
Question details
Configure an externally reachable AD FS service name for Microsoft 365 single sign-on.

- Product
- Microsoft 365 and Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- External Microsoft 365 users are redirected to an AD FS service that currently uses an internal .local namespace.
- Observed behavior
- The .local AD FS service name cannot be resolved from the Internet, preventing external users from reaching the sign-in service.
Identify the current AD FS service name, the public domain you control, and the external IP address used by the AD FS proxy load balancer. Check that you can manage public DNS, NAT, certificates, and Microsoft 365 federation settings.
Use a Public AD FS Service Name for External Sign-Ins
Use a name under a public domain you control so Microsoft 365 users can reach AD FS from the Internet.
For example, use sts.frankloft.com as the federation service name instead of sts.crest.local. The AD FS servers can remain joined to the internal .local Active Directory domain.
Changing the service name of an existing AD FS deployment requires a planned migration or reconfiguration of the farm and its federation settings; creating a DNS record alone does not change the name Microsoft 365 uses.
In your public DNS provider's management console, select a name under a domain you control, such as sts.frankloft.com. Confirm the intended federation service name in AD FS Management before planning the change.
In the public DNS zone for your domain, create an A record for the AD FS name that points to the external IP address used for the proxy load balancer.
In the firewall or NAT configuration, forward inbound TCP port 443 from the public IP address to the AD FS proxy load balancer. Ensure the proxies can reach the AD FS servers on the internal network.
Obtain a trusted TLS certificate whose subject or subject alternative name includes the public AD FS name. Configure the certificate for the AD FS service and its proxies as required by your deployment.
Follow Microsoft's supported AD FS migration and Microsoft 365 federation configuration guidance for the new service name. After the change, check public DNS resolution and attempt a Microsoft 365 sign-in from a network outside the corporate environment.

Work with Office Files Using WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and compatibility with Microsoft Office formats, making it easier to move existing documents into your workflow. It does not fix Microsoft 365 AD FS or federation configuration.

Frequently Asked Questions
Why can't I use a .local AD FS name for external sign-ins?
A .local name is intended for local networks and is not a publicly resolvable Internet domain. Microsoft 365 redirects users to the configured AD FS service name, so external users need a publicly resolvable name such as sts.frankloft.com.
Can my AD FS servers remain in an internal .local domain?
Yes. The servers can remain joined to the internal Active Directory domain while the AD FS federation service uses a name under a public domain you control.
Will creating a public DNS record alone fix the sign-in problem?
No. The configured AD FS service name and Microsoft 365 federation settings must use the public name, and DNS, HTTPS routing, proxy configuration, and the certificate must support that name.
What should the public AD FS DNS record point to?
Create an A record for the public AD FS name in your DNS provider's console and point it to the external IP address that routes HTTPS traffic to the AD FS proxy load balancer.




