CentOS 7 DNS Server settings

Source: Internet
Author: User
Tags dnssec

vim /etc/sysconfig/network-scripts/ifcfg-eno16777736dns1=192.168.1.100vim /etc/sysconfig/ networknetworking=yeshostname=lin01.example.localvim /etc/hosts127.0.0.1   localhost  localhost.localdomain localhost4 localhost4.localdomain4::1          localhost localhost.localdomain localhost6 localhost6.localdomain6vim / etc/resolv.confnameserver 192.168.1.100systemctl restart network.serviceyum install  Bind bind-utilsservice named startcp /etc/named.conf /etc/named.conf.bakvim /etc /named.confoptions {        listen-on port 53 {  127.0.0.1; 192.168.1.100; };  #need  change         listen-on-v6 port 53 { ::1; };         directory        "/var/named";        dump-file         "/var/named/data/cache_dump.db";         statistics-file  "/var/named/data/named_stats.txt";         memstatistics-file  "/var/named/data/named_mem_stats.txt";         allow-query     { localhost; 192.168.1.0/24;};   #need  change        recursion yes;         dnssec-enable yes;         dnssec-validation yes;        dnssec-lookaside auto;         /* Path to ISC DLV key */         bindkeys-file  "/etc/named.iscDlv.key ";        managed-keys-directory "/var/named/dynamic ";         pid-file  "/run/named/named.pid";         session-keyfile  "/run/named/session.key";}; logging {        channel default_debug {                 file  "Data/named.run" ;                 severity  dynamic;        };}; zone  "."  IN {        type hint;         file  "named.ca";}; include  "/etc/named.rfc1912.zones";include  "/etc/named.root.key"; #add  followingzone  " Example.local " in {        type master;        file  "Example.zone";}; zone  "1.168.192.in-addr.arpa"  IN {        type  master;        file  "192.168.1.zone"; cp /var/named/ named.localhost /var/named/example.zonevim /var/named/example.zone$ttl 1d@        IN      SOA      lin01.example.local. root.example.local.  (                 0       ; serial                 1D       ; refresh                 1h      ; retry                 1W      ; expire                 3H )     ; minimum@        IN      NS       lin01.example.local.@       in      a        192.168.1.100@       IN       A       192.168.1.91@        in      a       192.168.1.92lin01    IN      A        192.168.1.100lin10   in      a       192.168.1.91lin09    in      a       192.168.1.92cp / var/named/named.localhost /var/named/192.168.1.zonevim /var/named/192.168.1.zone$ttl 1d@        IN      SOA      lin01.example.local. root.example.local.  (                 0       ; serial                 1D       ; refresh                 1H      ; retry                 1w      ; expire                 3H )     ;  minimum@       in      ns       lin01.example.local.@       IN       PTR     example.local.lin01   IN       A       192.168.1.100lin09   IN       A       192.168.1.92lin10   IN       A       192.168.1.91100      in      ptr     lin01.example.local.91       in      ptr     lin10.example.local.92       IN      PTR      Lin09.example.local.systemctl start named.servicesystemctl status named.servicesystemctl  restart named.servicesystemctl enable named


CentOS 7 DNS Server settings

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.