当前位置:网站首页>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

边栏推荐
- Sword finger offer II 041. Average value of sliding window_____ Using queue / loop array implementation
- Imeta | ggclusternet microbial network analysis and visualization nanny level tutorial
- Operations in shell
- 301. Delete invalid brackets
- B. Difference of GCDs
- Algorithmic interview questions
- Li Kou 343 integer partition dynamic programming
- Analysis of cascading relation operation examples of cascade
- 292. Nim game
- Why does the legend of superstar (Jay Chou) not constitute pyramid selling? What is the difference between distribution and pyramid selling?
猜你喜欢

VMware installation

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

应急响应全栈

Solve "nothing added to commit but untracked files present"“

How should enterprise users choose aiops or APM?

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

Acwing 870. approximate number

Calculation method of confusion matrix

基于SSH婴幼儿产品销售系统
![[leetcode medium] 34. Find the first and last positions of elements in the sorted array - array double pointer](/img/f0/e572fe077ddd51b9c160e3382b2a07.png)
[leetcode medium] 34. Find the first and last positions of elements in the sorted array - array double pointer
随机推荐
Use of CCleaner
Leetcode programming practice -- Tencent selected 50 questions (I)
How to cancel and exit revision mode for word
Moveit2 - 10.urdf and SRDF
Electronic bidding procurement mall system: optimize traditional procurement business and speed up enterprise digital upgrading
The sixth day of brushing questions with force deduction
Task02 | EDA initial experience
Moveit2 - 7. Scenario planning ROS API
Merge sort / quick sort
Memory leak due to improper handling of custom view
[kaggle] how to effectively avoid oom and the long process of alchemy
[brother hero July training] day 19: binary tree
Network construction and application in 2020 -- the answer of samba in Guosai
01_ Education 3
C language_ Structure introduction
Openlayers ol ext: Transform object, rotate, stretch, zoom in
An article takes you quickly to learn flex layout
Skywalking distributed link tracking, related graphics, DLJD, cat
Codewars notes
Fiddler grabs packets and displays err_ TUNNEL_ CONNECTION_ FAILED