当前位置:网站首页>DNS resolution experiment
DNS resolution experiment
2022-07-25 03:40:00 【Free to Superman】
DNS Forward analysis
Install first bind( A process is running and cannot be installed , First kill Kill process )

vim Get into /etc/named.conf
vim /etc/named.conf
options {
listen-on-v6 poet 53 { 192.168.158.11; }; # monitor 53 port ,IP Address uses the local where the service is provided IP, Also available any On behalf of all
# listen-on-v6 port 53 { : :1; }; #ipv6 Lines can be commented out or deleted if they are not used
directory "/var/named"; # The default location of the area data file Set up
dump- file "/var/ named/data/cache_ dump . db"; # Location of domain name cache database file
statistics-file "/var/named/data/named stats.txt"; # The location of the status statistics file
memstatistics-file "/var/named/data/named_ mem_ stats. txt"; # Location of memory statistics file
allow-query
{ any; }; # Allow to use this DNS The network segment of the resolution service , Also available any On behalf of all
zone "." IN { # Forward analysis “. " Root area
type hint; # The type is the root region
file "named.ca"; # The area data file is named.ca, Recorded 13 The domain name of the root domain server and IP Address and other information
};
vim Get into /etc/named.rfc1912.zones
vim /etc/named.rfc1912.zones
zone "lxx. com" IN { # Forward analysis "lxx.com" Area
type master; # Type is the main area
file "lxx. com. zone"; # The specified area data file is lxx. com. zone
allow-update { none; };
};

cd /var/named then cp -p named.localhost lxx.com.zone
vim Get into lxx,com.zone
$TTL 1D # Set the effective time of cache resolution results
@ IN SOA lxx.com. admin.lxx.com. (
0; serial .
1D; refresh
1H; retry
1W; expire
3H ) ; minimum
NS lxx.com. # Record the current area of DNS Name of the server
A 192.168.158.111 # Recording host IP Address
IN MX 10 mail.lxx.com. #MX Record for mail exchange , The higher the number, the lower the priority
www IN A 192.168.158.111 # Record forward resolution www.benet.com Corresponding IP
mail IN A 192.168.158.100
ftp IN CNAME www #CNAME Use the alias ,ftp yes www Another name for
* IN A 192.168.158.200 # Pan domain name resolution ,“*" Represents any host name

Turn off firewall , start-up named service

Add... In the domain name resolution configuration file of the client DNS Server address
vim /etc/resolv.conf Entering and writing is effective immediately , No need to restart the network card , use echo I need to restart the network card

Configuration complete , Finally, test it

边栏推荐
- [Flink] transform operator map
- Force deduction brush question 14. Longest common prefix
- CVPR 2020 | social stgcnn: pedestrian trajectory prediction based on graph convolution
- Experience sharing of system architecture designers in preparing for the exam: how to prepare for the exam effectively
- 基于SSH婴幼儿产品销售系统
- Moveit2 - 6. Planning scene monitor
- Database transactions (often asked)
- Direct insert sort / Hill sort
- A 20 yuan facial cleanser sold tens of thousands in seven days. How did they do it?
- 基于ABP实现DDD--领域逻辑和应用逻辑
猜你喜欢

Wechat applet access wechat payment process

Acwing 870. approximate number

P100 MSSQL database penetration test of secondary vocational network security skills competition

Consistent hash, virtual node, bloom filter
![Easyexcel sets the style of the last row [which can be expanded to each row]](/img/25/8fb41f222cb3cca0119515d070b667.png)
Easyexcel sets the style of the last row [which can be expanded to each row]

Electronic bidding procurement mall system: optimize traditional procurement business and speed up enterprise digital upgrading

How to use two stacks to simulate the implementation of a queue

Lombok detailed introduction

Machine learning notes - building a recommendation system (4) matrix decomposition for collaborative filtering

Many local and municipal supervision departments carried out cold drink sampling inspection, and Zhong Xue's high-quality products were all qualified
随机推荐
Machine learning notes - building a recommendation system (4) matrix decomposition for collaborative filtering
Interview question 08.07. Permutation and combination of non repeated strings DFS method
How chemical enterprises choose digital service providers with dual prevention mechanism
Why does the legend of superstar (Jay Chou) not constitute pyramid selling? What is the difference between distribution and pyramid selling?
Test question C: question brushing statistics
A code takes you to draw multi format sangjimei pictures such as interactive +pdf+png
Swagger key configuration items
Force deduction brush question 14. Longest common prefix
Performance test indicators using JMeter
B. All Distinct
Take a database statement note: when the field is empty, assign the default value to the result
Lombok detailed introduction
弹性布局(display:flex下 align-content、justify-content、align-items三个属性的作用和效果
Fifth day of force deduction
Implementation of online number or fan query of the scene
Hw2021 attack and defense drill experience - Insights
Table of contents of force deduction questions
Record once C # extract audio files with ffmempeg
Flowlayout in compose
.net6 miniapi (V): Options