Linux04 dns 2

33 %
67 %
Information about Linux04 dns 2

Published on March 5, 2014

Author: jainulmusani



Linux DNS Server -2

1 17-FEB-2014 – Monday Topic: Domain Name Server (Overview, Configuration) 1

2 Domain Name Server Overview Overview The DNS configuration files are stored in the /etc/bind directory. The primary configuration file is /etc/bind/named.conf. 2

3 Domain Name Server Overview The include line specifies the filename which contains the DNS options. The directory line in the /etc/bind/named.conf.options file tells DNS where to look for files. 3

4 Domain Name Server Overview All files BIND uses will be relative to this directory. The file named /etc/bind/db.root describes the root nameservers in the world. 4

5 Domain Name Server Overview The servers change over time, so the /etc/bind/db.rootfile must be maintained now and then. This is usually done as updates to the bind9 package. 5

Domain Name Server Overview 6 The zone section defines a master server, and it is stored in a file mentioned in the file option. It is possible to configure the same server to be a caching name server, primary master, and secondary master. 6

7 Domain Name Server Overview A server can be the Start of Authority (SOA) for one zone, while providing secondary service for another zone. All the while providing caching services for hosts on the local LAN. 7

8 Domain Name Server Overview - Caching Nameserver The default configuration is setup to act as a caching server. All that is required is simply adding the IP Addresses of your ISP's DNS servers. 8

9 Domain Name Server Overview - Caching Nameserver Simply uncomment and edit the following in /etc/bind/named.conf.options: forwarders {;; }; Replace and with the IP Adresses of actual nameservers. 9

10 Domain Name Server Overview - Caching Nameserver Now restart the DNS server, to enable the new configuration. From a terminal prompt: $ sudo service bind9 restart 10

11 Domain Name Server Overview - Primary Master In this section BIND9 will be configured as the Primary Master for the domain Simply replace with your FQDN (Fully Qualified Domain Name). 11

12 Domain Name Server Overview - Forward Zone File Now use an existing zone file as 12 a template to create the /etc/bind/ file: sudo cp /etc/bind/db.local /etc/bind/ zone "" { type master; file "/etc/bind/"; };

13 Domain Name Server Overview - Secondary Master Once a Primary Master has been configured a Secondary Master is needed in order to maintain the availability of the domain should the Primary become unavailable. 13

14 Domain Name Server Overview - Secondary Master First, on the Primary Master server, the zone transfer needs to be allowed. Add the allow-transfer option to the example Forward and Reverse zone definitions in /etc/bind/named.conf.local: 14

15 Domain Name Server Overview - Secondary Master 15 zone "" { type master; file "/etc/bind/"; allow-transfer{;}; }; zone "" { type master; file "/etc/bind/db.192"; allow-transfer{;}; };

16 Domain Name Server Overview - Secondary Master Replace with the IP Address of your Secondary nameserver. Restart BIND9 on the Primary Master: $ sudo service bind9 restart 16

Add a comment

Related presentations

Related pages - Gemeinde Bäriswil

Mittels des Apache/2 Web-Servers wird ... ch sind ihre DNS Nameserver. IP: Web Server: Apache/2. Charset: iso-8859-1. PING ...
Read more - INDEX

Sie hat 2 DNS-Einträge:, und IP: ... 64 bytes from ( icmp_seq=2 ttl=51 : 140 ms:
Read more

Suche Tool um IP-Adressen zu ändern |

... so dass man die DNS ... neueste Antwort vom 17.08.2004, 14:46 Uhr | 2 Antworten ... schau dir doch mal http://linux04.wekanet ...
Read more

IP-Minifassung Teil 2

DNS reverse DNS ping ... R. Hörmanseder KV Betriebssysteme: IPv4 Teil 2 12 hoe@linux04: > ping -c 2 PING ...
Read more - Alle Infos über sind auf ...

IP-Adresse 1: Hostname: Nameserver 1: Nameserver 2: ... 2: Nein: 1.817.807: 15-05-2012: 20 B: 0/5: 85.125 ...
Read more

DDNS the dyndns with problem - MikroTik RouterOS

DDNS the dyndns with problem. ... DDNS the dyndns with problem. Post by Linux04 » Thu Aug 27, ... ...
Read more

KV Betriebssysteme: IP Minifassung

Switch -a: IP-Adresse (via reverse DNS) auf Host-namen auslösen R. Hörmanseder KV Betriebssysteme 12 hoe@linux04: > ping -c 2
Read more


2. news@UK UKUUG ... ... Electronics, where he wrote a DNS management system and designed, built, and ran the DNS
Read more