Server 2016: Active Directory installation (part 2)

Foreword

In the first part of this article a new Active Directory has been installed. So far, however, there is only one domain controller. In order to keep the Active Directory available in the event of a server failure, at least two domain controllers should be installed per domain.

In this article, the second domain controller is installed and configured.

Preparation

As with the first domain controller, the preparations are completed quickly. A descriptive host name is assigned again, in this case FWDC2:

image

A static IP address is also required again. This time, the already installed domain controller is specified as the DNS server:

image

Finally, the server is added as a member of the existing Active Directory:

image

That was all the preparations for the second domain controller.

Install Active Directory role

As with the first domain controller, the Active Directory role must be installed first. The procedure is identical for all domain controllers and has already been described in the first part, so I will save the details here.

Active Directory role

As soon as the role is installed, the server can be upgraded to Domain Controller:

image

Upgrade second domain controller

To upgrade the second domain controller, select the option "Add domain controller to an existing domain". As the server is already a member of the Active Directory, no further selection needs to be made under "Domain". It is important that a domain administrator is logged on to the server, otherwise the corresponding rights for upgrading a DC are missing.

image

The IP address is now used to determine the subnet and the corresponding Active Directory location (as created in part 1). Keep the password safe again:

image

Again, the message appears that no delegation can be created for the DNS server, as already mentioned, this is normal:

image

In the next dialog, you can specify the domain controller from which the initial replication should take place. If there are already several domain controllers or the first domain controller is installed in a new location, a DC that is best suited (fastest connection, lowest utilization, etc.) can be specified here:

image

The paths for the installation are normally left as they are:

image

A summary of the settings is now displayed again and there is again the option to save the settings as a script:

image

Click on Install to upgrade the server to Domain Controller and perform the initial replication:

image

The server is restarted automatically:

image

As soon as the restart has been carried out, the new domain controller is available, but there is still some rework to be done.

Reworking

First of all, the issue with the time again. The first domain controller, or the domain controller with the master role PDC, is synchronized with an external time source. In the first article, this is an NTP server from the Internet. All other domain controllers in this domain can now synchronize the time via the PDC.

This can be configured with the following commands (the parameter is really called "domhier", no name is entered, just accept it as it is):

w32tm /config /syncfromflags:domhier /update
net stop w32time && net start w32time

Actually, the thing with the time is quite simple: Synchronize PDC with an external time source, synchronize all other DCs of the domain with PDC, clients get their time from the domain controllers. Unfortunately, synchronization with an external time source is often forgotten.

Each DNS server should have at least two forwarders, in this example the router and Google DNS are used as targets for the DNS forward. However, a different domain controller is NOT specified here.

The background is as follows: All DNS queries that this DNS server cannot answer directly will be forwarded to the addresses that are configured as forwarders, which is why public DNS servers are normally entered here. Another domain controller will also not be able to answer the query and would also have to forward it, so it normally makes no sense to specify a different DC here:

image

To ensure that obsolete DNS entries are also deleted after a certain period of time, "Ageing" should also be activated:

image

The same applies to the reverse lookup zone:

image

To ensure that outdated entries are deleted, the "cleanup process" must be activated on the DNS servers:

image

Last but not least, a setting that affects the first domain controller. The second domain controller is set as the primary DNS server, the loopback address as the secondary DNS server:

image

The settings should also already suit the second domain controller.

This means that the Active Directory runs on two domain controllers and is protected against the failure of a single server. A proper backup must of course still be set up.

16 thoughts on “Server 2016: Active Directory Installation (Teil 2)”

  1. Guten Tag Super How-To ,

    bei mir kam es dazu das DC2 die reverse Lookup Zone nicht übernommen hat , gibt es eine Urache dafür?

    Mfg

    Reply
  2. Morgen!
    Danke für die Anleitung. Kann ich den 2. DC temporär zum 1. machen um den Server des 1. DC neu aufzusetzen? Muss ich am 2. DC dann noch Schritte machen um den zum Haupt DC zu machen? Und umgekehrt dann später wieder wenn der 1. DC frisch ist soll auch alles wieder zurück gehen.
    Danke für Tips.
    Martin

    Reply
    • Da schließe ich mich gern an.
      Aktuell liegen auf dem DC eine Menge an Daten (3TB), welche einen Neustart extrem verlangsamen. Fehlkonfiguration. Diese konfig möchte ich bereinigen. Ich würde sogar gern den zweiten zum PDC machen, den anderen komplett „löschen“ und auf einem anderem, neuen Server neu hochziehen anschließend dann zum PDC machen. Gibt es hierbei etwas zu beachten? Freue mich über Rückmeldung!

      Danke!

      Reply
    • Hi Martin,

      der Sinn eines SDC ist doch, dass er redundant zum PDC läuft. Sprich Einstellungen die ich auf dem SDC oder PDC vornehme gelangen automatisch auf den anderen. Jedenfalls wäre das doch sinnvoll oder nicht? Gerne durch erfahrene User bestätigen oder negieren.

      Reply
  3. Hallo Frank,
    wie immer – vielen Dank für deine tollen Artikel!
    Muss man die „Alterung“ und „Aufräumvorgang“ auch am PDC aktivieren?
    Diese Einstellungen sind im Artikel nur beim SDC vermerkt.

    Danke für deine Antwort.

    Viele Grüße,
    Max

    Reply
    • Hi Max,

      der Sinn eines SDC ist doch, dass er redundant zum PDC läuft. Sprich Einstellungen die ich auf dem SDC oder PDC vornehme gelangen automatisch auf den anderen. Jedenfalls wäre das doch sinnvoll oder nicht? Gerne durch erfahrene User bestätigen oder negieren.

      Reply
  4. Hallo Curd,

    google mal nach Split DNS. Du musst in dem Fall für Server die außerhalb Deiner lokalen Domäne sind z.B Webserver dann einen DNS Eintrag anlegen der auf die externe IP Adresse des Webservers verweist.

    Reply
  5. Hi Franky,
    Danke für das tolle How-To. Wenn die Domäne gleich der Internetdomain ist, dürfte ja aus dem internen Netz keiner mehr auf die Internetseite kommen, oder?

    Reply
  6. Hallo Frank, super How-To vielen Dank dafür!!! Eine Frage bleibt bei mir noch offen, warum wird am PDC als primärer DNS der zweite DC eingetragen und nicht er selber und als Sekundärer DNS dann den zweiten DC?

    Reply
    • Hallo Eddie,
      den zweiten Domain Controller als primären DNS einzutragen hat folgenden Hintergrund: In bestimmten Situationen kann ein DC seine Replikationspartner nicht finden, wenn er selbst als primärer DNS eingetragen ist. Zum Beispiel im Falle eines Neustarts. Daher ist es Best Practise immer einen anderen DC als primären DNS einzutragen und die eigene IP als sekundärer DNS.
      Gruß, Frank

      Reply
  7. Sorry, aber welchen Sinn sollen die Weiterleitungen auf den Router und Googles DNS haben? Wenn alles sauber Konfiguriert ist, werden die root hints dafür sorgen, dass du ins Internet kommst.

    Reply
    • Hi Albert,
      ich mache es aus Performance Gründen:

      dig @8.8.8.8 http://www.frankysweb.de | grep „Query time:“
      ;; Query time: 44 msec

      Zum Vergleich einer der Root Server von meinem Standort:

      dig @199.7.91.13 http://www.frankysweb.de | grep „Query time:“
      ;; Query time: 122 msec

      Google ist in den meisten Fällen einfach schneller und es sind weniger Hops nötig. Natürlich lassen sich auch die Root DNS Server nutzen. Der Router ist hier nur das Backup und verdeutlicht einen zweiten Forwarder.
      Gruß, Frank

      Reply
  8. Lässt sich erklären wieso das Microsoft standardmässig den Aufräumvorgang deaktiviert lässt? Ich habe diesen jeweils auch auf 7 Tage gestellt und aktiviert. Wieso lässt Microsoft diese Einstellung inaktiv?

    Gruss Dave

    Reply

Leave a Comment