Stapsgewijs/Ubuntu Name Server

From OchaWiki
Revision as of 11:02, 20 February 2022 by OllieA (talk | contribs) (→‎Overzicht)
Jump to navigation Jump to search

File:BookSeries.png

Deze pagina maakt deel uit van de serie Stapsgewijs.

Een Name server a.k.a. DNS server wordt opgebouwd met de volgende stappen. Daarbij wordt het proces gevolgd , dat beschreven wordt in de Ubuntu Serve Guide[1].

Installatie

Er wordt hier uitgegaan van een up-to-date geïnstalleerde Basic Server.

We installeren twee packages:

  1. de bind9 software
    sudo apt-get install bind9
  2. de dnsutils verzameling hulpsoftware
    sudo apt-get install dnsutils

Configuratie

Gebruik de volgende opties om de server te configureren:

Er zijn 3 soorten name servers:

  1. Caching Name Server
  2. Primary Name Server
  3. Secondary Name Server

Elk daarvan wordt hierna besproken.

Overzicht

De DNS-configuratiebestanden worden opgeslagen in de directory /etc/bind. Het primaire configuratiebestand is /etc/bind/named.conf, dat in de lay-out van het pakket alleen de navolgende bestanden bevat:

  • /etc/bind/named.conf.options: global DNS options
  • /etc/bind/named.conf.local: for your zones
  • /etc/bind/named.conf.default-zones: default zones such as localhost, its reverse, and the root hints

Meer ...

Caching Name Server

When configured as a caching nameserver BIND9 will find the answer to name queries and remember the answer when the domain is queried again.

Primary Name Server

As a primary server, BIND9 reads the data for a zone from a file on its host and is authoritative for that zone.

Secondary Name Server

As a secondary server, BIND9 gets the zone data from another nameserver that is authoritative for the zone