How to forward FQDN on Windows Server

calgia 21 Reputation points
2023-06-12T08:45:07.92+00:00

Hello

I have some server, let's call them server1.

This server1 is Active Directory for Domain domain.net with Net-BIOS Name domain and DNS for domain.net

How can i now send every request for domain.net who is not recogniced by server1 to the router and forward this to the actual Webside hosted?

Greetings,

Gian Duri

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Khaled Elsayed Mohamed 1,335 Reputation points
    2023-06-12T09:10:18.5+00:00

    Hi GD

    To forward requests for domain.net that are not recognized by server1 to the router and then to the actual website hosted elsewhere, you can follow these steps:

    Configure Conditional Forwarding on the Active Directory DNS server (server1): a. Open the DNS Manager on server1. b. Right-click on the server name and select "Properties." c. Go to the "Forwarders" tab. d. Add the IP address of your router as a forwarder. e. Ensure that the option "Do not use recursion for this domain" is not selected. f. Click "OK" to save the changes.

    Create a new DNS Zone on the Active Directory DNS server (server1): a. In the DNS Manager, right-click on "Forward Lookup Zones" and select "New Zone." b. Choose "Primary zone" and click "Next." c. Enter "domain.net" as the zone name and click "Next." d. Select "Do not allow dynamic updates" and click "Next." e. Choose the appropriate zone file storage location and click "Next" and then "Finish." f. The new zone for "domain.net" should now appear in the Forward Lookup Zones list.

    Configure a wildcard DNS record in the newly created zone on server1: a. Open the DNS Manager and navigate to the zone for "domain.net." b. Right-click on the zone and select "New Host (A or AAAA)." c. Enter "*" (without quotes) as the name and specify the IP address of your router. d. Click "Add Host" and then "OK" to save the wildcard record.

    Configure the router to forward incoming requests to the actual website: a. Access your router's configuration interface. b. Look for the Port Forwarding or NAT (Network Address Translation) settings. c. Set up a port forwarding rule that forwards incoming requests on port 80 (HTTP) and/or port 443 (HTTPS) to the IP address of the actual website hosting server. d. Save the changes and exit the router configuration.

    With these steps, any request for domain.net that is not recognized by server1 will be forwarded to the router, and the router will redirect the request to the actual website hosted elsewhere. The wildcard DNS record ensures that any subdomain under domain.net will also be forwarded to the router for redirection.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.