Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux Centos7DNS parsing (forward parsing, reverse parsing, master-slave replication) everything you want

Shulou Source: shulou.com Published: 2022-06-02 03:03:40 10月05日 Update

1. DNS forward resolution 1. Check to see if there is a BIND bag, and if not, go and install it.

two。 Enter the main configuration file

The vim / etc/named.conf main configuration file controls the global configuration

3. Enter the zone profile

Vim / etc/named.rfc1912.zones

The area profile controls the specific order area

4. Copy our data configuration file and replace the default

5. Enter the zone data profile

Vim / var/named/named.localhost

Zone data profile

Regional information

6. Turn off firewalls, enhance features, and turn on services

7. Try to add local parsing.

two。 Reverse parsing 1. Enter the main configuration file

The vim / etc/named.conf main configuration file controls the global configuration

two。 Copy, enter the zone data profile

3. Configure area data profile

4. Restart the service to see if it can be parsed

three。 Master-slave replication (as a backup server)

The vim / etc/named.conf main configuration file controls the global configuration

1. Enter the master profile (slave server)

two。 Enter the zone profile (from the server)

Vim / etc/named.rfc1912.zones

3. Modify the zone configuration file of the main dns server

4. Restart services (master and slave servers)

5. Let's try to see if the slave server can resolve the address like the master server.

Tags: Configuration file service zone server data control global master-slave information function address firewall backup fire prevention Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker MySQL Apple macOS