Linux DNS Cache

Source: Internet
Author: User

1. Install the deployment DNS

Yum Install Bind-y

Systemctl Start named

Systemctl Enable named

Systemctl Stop Firewalld

Systemctl Disable FIREWALLD

Master configuration file:/etc/named.conf

Child configuration files:/etc/name.rfc1912.xones

Data Catalog:/var/named

2. Cache DNS

Vim/etc/named.conf

Test:

3. Forward parsing of authoritative DNS

Vim/etc/name.rdc1912.zones

Cd/var/name

Cp-p Named.localhost Westos.com.zone

Vim Westos.com.zone

Systemctl Restart named

Test:

Vim/etc/resolv.conf

NameServer 172.25.254.103

Dig www.westos.com

4. Reverse resolution of authoritative DNS

Vim/etc/name.rfc1912.zones

Cp-p Named.loopback Westos.com.ptr

Vim Westos.com.ptr

Test:

Vim/etc/resolv.conf

NameServer 172.25.254.103

Dig-x 172.25.254.111

DNS bidirectional parsing

Cp-p/var/named/westos.com.zone/var/named/westos.com.localnet

Vim/var/named/westos.com.localnet

Cp-p/etc/named.rfc1912.zones/etc/named.rfc1912.localnet

Vim/etc/named.rfc1912.localnet

vim/etc/named.conf Comment out 51~58 line (approximate position)

Systemctl Restart named

Test:

DNS Cluster

Environment configuration on the secondary DNS: Bind installation, primary and secondary file configuration, DNS pointing, service Start, firewall management.

Main Dns:vim/etc/named.rfc1912.zones

Systemctl Restart named

Test: Auxiliary end multiplicity Kai named service

Remotely update DNS

In order to facilitate the recovery of the environment, the first partial file backup

Comment out the section you wrote yourself in/etc/named.conf before, and restore the portion of the comment that was previously commented out.

Vim/etc/named.rfc1912.zones

chmod 770/var/named

Systemctl Restart named

Send DNS information on the specified IP host

There will be westos.com.zone.jnl on the side.

Remote Encryption Updates DNS

Environment recovery: Update the generated two files before deleting and restore the previously backed up files and restart the service.

Update-Side encryption:

Vim/etc/named.conf

Vim/etc/named.rfc1912.zones

Zone "Westos.com" in {
Type master;
File "Westos.com.zone";
allow-update {key westos;};
also-notify {172.25.254.214;};
30};

Systemctl Restart named

SCP kwestos.+157+31240.* [email protected]:/mnt/upload the key to a host that allows updates

Nsupdate-k Kwestos.+157+54897.key
> Server 172.25.254.114
> Update add abc.westos.com 86400 A 172.25.254.111
> Send

Linux DNS Cache

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.