#dnsserver #centos

In this video i will show you how to install the DNS Server on Centos 7

Named.conf
listen-on port 53 { 127.0.0.1;10.1.128.50; };
allow-query { localhost;any; };

zone "laptopzone.us" IN {
type master;
file "forward.laptopzone.us";
allow-update { none; };
};
zone "128.1.10.in-addr.arpa" IN {
type master;
file "reverse.laptopzone.us";
allow-update { none; };
};

forward.laptopzone.us

$TTL 1D
@ IN SOA laptopzone.us. root.laptopzone.us. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS laptopzone.us.
@ IN A 10.1.128.51
www IN A 10.1.128.51

;Mail exchanger
laptopzone.us. IN MX 10 laptopzone.us.

;A - Record HostName To IP Address
mail IN A 10.1.128.51

reverse.laptopzone.us

$TTL 1D
@ IN SOA laptopzone.us. root.laptopzone.us. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS laptopzone.us.
@ IN PTR laptopzone.us.
laptopzone IN A 10.1.128.51
51 IN PTR laptopzone.us.

Facebook Link
https://www.facebook.com/theit.guru.71

Linkedine:
https://www.linkedin.com/in/theitguruonline/

source by itgurupro

linux dns server