Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

Local Domain Has The Same Name as Public Website Domain

August 13, 2024
in A, Active Directory, Blog
0
ADVERTISEMENT

Table of Contents

Local Domain Name Same As Website

Best practices for Active Directory (AD) domain design advise against using a registered domain name as the name of an AD domain. Viable alternatives include using a non-public DNS suffix (.local or .lan, for example) in the AD domain name.

In this case, the company’s website, can’t be reached from inside the office by machines joined to the AD domain, but machines outside the office have no issues reaching the website.

Bg865

The issue arises because a local DNS server that has a particular lookup zone in its database and point to domain controllers that have not any website.

Bg866

Solution 1: Using local DNS Server

The solution to this issue is simple: create a host record named www in the domain.com zone on the Domain Controller and give that record the website’s public IP address. Machines that query that DNS server then receives the correct response and be able to browse the website.

Bg867

Internal users would be access the company website with www.domain.com.

Using this solution, user must add www prefix to access the company website, it’s inconvenience. Let move forward to the next solution to dealing with this issue.

Bg868

Solution 2: Using Nginx to serve as a web server

Note Note: You must run Nginx in Domain Controllers

1. Download then extract downloaded file Nginx for Windows http://nginx.org/en/download.html

2. In the extracted folder, navigate to conf folder.

Bg869

3. Open nginx.conf using any text editor.

Bg870

4. In the server block, add this line to redirect from domain.com to www.domain.com.

rewrite ^(.*) http://www.domain.com$1 permanent;
Note Note: When using this solution, the www record in the local DNS server still required. So, be certain, you've create www record in local DNS.
Bg871

5. Save the configuration file then open nginx.exe to run Nginx application. When your server restarts, you must run Nginx app manually, let try this How to Install Nginx in Windows as a Windows Service Auto Start.

Bg872

Now, internal users can access the company website without www prefix. Just simple type domain.com in the address bar.

Bg873
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Import or Install a SSL Certificate on an Exchange Server

Next Post

How to Install Nginx in Windows as a Windows Service Auto Start

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory