search
Homephp教程PHP开发Linux dns cache server and forward and reverse zone configuration

dns cache server

Experimental machine ip 192.168.1.202

First:

1. yum install bind bind-libs bind-utils -y Download package installation

2. cp /etc/named.conf /etc/named .conf.bak Copy a configuration file

3. vim named.conf Enter the configuration file

(the red box is the place that needs to be added or modified)

Linux dns cache server and forward and reverse zone configuration

Then save and exit.

Linux dns cache server and forward and reverse zone configuration

Forward zone analysis:

vim /etc/named.rfc1912.zones Enter the file and add the following items

Linux dns cache server and forward and reverse zone configuration

2. Create a file lantern.com in the /var/named/ folder. zone

vim lantern.com.zone Enter the following items

Linux dns cache server and forward and reverse zone configuration

and check if there are any problems.

Linux dns cache server and forward and reverse zone configuration

It’s correct when you see the word OK.

Next, modify the permissions and group ownership of the lantern.com.zone file. Just modify it to be the same as other files

Linux dns cache server and forward and reverse zone configuration

Linux dns cache server and forward and reverse zone configuration

The next step is to restart the service.

Linux dns cache server and forward and reverse zone configuration

The above is all the preparation work. If it is correct, you can try it to see if it works. The picture below is polling. You can check it out. The following is query using NS and MX.

Linux dns cache server and forward and reverse zone configuration

Linux dns cache server and forward and reverse zone configurationThe above is the forward direction

The following is the reverse direction

Linux dns cache server and forward and reverse zone configurationvim /etc/named.rfc1912.zones After entering the file, you need to add the following items

Linux dns cache server and forward and reverse zone configuration

2. In /var Create a 192.168.1.zone file in /named/

vim 192.168.1.zone Add some content in it

Then save and exit. Then check the file for errors. Linux dns cache server and forward and reverse zone configuration

named-checkconf

named-checkzone “192.168.1.zone” /var/named/192.168.1.zone

If it is correct, the next step is to modify the permissions and group of this file

Linux dns cache server and forward and reverse zone configuration

Then restart the service

The following is the test

Linux dns cache server and forward and reverse zone configuration

Linux dns cache server and forward and reverse zone configurationThe above are all the experimental results.

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment