Domain Name Service and Active Directory Setup(Windows Server 2019) - Foren-Ken/tech-journal GitHub Wiki

Active Directory

Most items within the Server Manager application can be found in the application "Server Manager" (built in with windows server 2019). Go to "Local Sever" and here the IPv4 properties, gateway, netmask, and DNS can all be set up. Ensure the name of the server is changed (this is important later).

To activate Active Directory

  1. Press the "Manage" tab in the upper right screen on "Server Manager"
  2. Press "Add Roles and Features" and wait for new screen to pop-up.
  3. Skip to "Sever Selection". After opening the next two tabs "Server Roles" and "Features" should become clickable.
  4. Go to "Server Roles" and select "Active Directory Domain Service". The popup will ask to add feature, press "Add Features"
  5. With this new feature, skip to "Confirmation" and select "Restart the destination server automatically if required" then "Install" Congratulations! The next part will actually set up AD and DNS

AD + DNS Setup

  1. Setting up a new forest. This should be found in a little popup or by clicking the flag in the top right.
  2. After opened, select "Add a new forest" and choose a root domain name. This can be anything.local. Choose all default and install.
  3. Expect an error, its an internal domain.
  4. After the installation and restart, log in using the previous credentials. These can be changed in the server manager.
  5. The network adapter settings have been changed. This will make it so it points back to itself for DNS (127.0.0.1 aka loopback).
  6. Add the firewall to the DNS. This is done by heading to the new "DNS" tab and right clicking the AD found within. Here, go to "DNS Manager"
  7. Now its time to set up the forward lookup zone. The Forwards Lookup Zone is responsible for resolving a domain name to an IP address. This is done by looking for the "Forward Lookup Zones" folder and right clicking the domain name i.e 123.abc.
  8. Choose New Host(A or AAAAA)...
  9. Change the "Name" or "Host" to the host name wanted. Afterwards, the IP address should be the location of item on the network.
  10. An error will appear due to the lack of reverse lookup zone hasn't been created.
  11. Right click "Reverse Lookup Zones" and select "New Zone"
  12. Type in the network ID (The range of IP addresses in the network).
  13. Now create a new PTR record in the newly created folder inside "Reverse Lookup Zones".
  14. Put the IP address in "Host IP Address" and the host name in "Host Name". or just make a new Forward Zone host to have it automatically work. DOMAIN NAMES NOW WORK!!!! (Hopefully)

AD Users and Computers

Head back to server Manager for this one.

  1. Go to AD DS on the left pane.
  2. Right click the AD01 and click "Active Directory Users and Computers"
  3. Create a new user by right clicking "users" and then "new" and then "user".
  4. Create the user with the details.
  5. To add groups, right click the newly create user and press "Add to Group"
  6. Make sure to add "Domain Admins" to any domain administrator account to have permissions.
  7. Set the DNS server of any computer which should be connected to the domain as the Server's IP address.
  8. Type in "Domain" and add device to domain. This should require a restart. Finished the server.