Simple configuration of Dns service

  
        

1) Install the required packages Bind-* bind-chroot-* caching-nameserver* There are also two installed packages bind-libs* bind-utils*2) Switch to the root directory of dns Cd /var/named/chroot Cd etc Configure the main configuration file to copy the template named.caching-nameserver.conf. Note the copy of the permissions Cp-p named.caching-nameserver.conf named.conf Vim named.conf15 line 127.0.0.1- --------"any27 line localhost--------"any allows the server to provide services for other hosts 36 lines localhost---------"any37 line localhost---- -----"any3) area declaration Vim named.rfc1912.zones added: zone “abc.com.” IN [abc.com. is the dns area under the jurisdiction of the server] { Type master; [Main server, If it is a secondary server sliver] File "abc.com.db"; [dns zone file name] Allow-update {none;}; [whether to allow updates, can be deleted]}; 4) Configure the dns server zone file Cd. .Cd var/namedCp -p localhost abc.com. dbVim abc.com.db$TTL 86400@ IN SOA [authorization start] ns.abc.com. [Main server name in the area] Root.abc.com. [Contact] ( 42 3H 15M 1W 1D ) IN NS [ Dns server] ns.abc.com.Ns IN A 192.168.100.252www IN A 1.1.1.1ftp IN A 2.2.2.2Mail IN A 3.3.3.3@ IN MX [mailbox in domain] mailPop3 IN CNAME [alias] mailSmtp IN CNAME Mail5) Reload the file Rndc reloadService named restart6) Test Dig -t MX abc.com Dig -t A www.abc.com Test results: This article is from “note_book” Blog



Copyright © Windows knowledge All Rights Reserved