当前位置:网站首页>DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
2022-04-23 20:15:00 【National Engineering Research Center】
DNS The status code of plays an important role in troubleshooting . stay DNS We often encounter in the maintenance of DNS Resolve the exception problem , adopt DNS The status code of can be preliminarily judged DNS Resolve the exception problem . In this issue, cloud school passed the detailed explanation DNS Definition of status code , Give examples of common status codes .enjoy:
① Write it at the front
This paper aims at Header section format Of RCODE Analyze .

This part corresponds to Wireshark Open in DNS Data packets Domian Name System part Flags Of RCODE
1:RFC1035[4.1.1]
0 NOERROR No error condition
1 Format error, Format error - The name server cannot interpret the query .
2 Server failure, Due to a name server problem , The name server cannot process the query .
3 Name Error, Only meaningful for responses from authoritative name servers , This code indicates that the domain name referenced in the query does not exist .
4 Not Implemented , Unrealized - The name server does not support the requested query type .
5 Refused, Refuse - The name server refused to perform the specified operation due to policy reasons . for example , The name server may not want to provide information to a particular requester , Or the name server may not want to perform specific operations on specific data ( for example , Zone transfer ).
6-15 Reserved for future use :
QDCOUNT An unsigned 16 An integer , Specify the number of entries in the problem section .
ANCOUNT An unsigned 16 An integer , Used to specify the number of resource records in the answer section .
NSCOUNT An unsigned 16 An integer , Appoint ame Number of authorized records in the server .
ARCOUNT An unsigned 16 An integer , Used to specify the number of resource records in other record sections .
2:RFC2136 [pag5-6]
rfc2136 [pag5-6] Yes DNS The description of the status code has been updated (1997 Release ):x
NOERROR 0 No error condition .
FORMERR 1 The name server cannot interpret the request caused by a format error .
SERVFAIL 2 The name server encountered an internal failure while processing this request , For example, operating system error or forwarding timeout .
NXDOMAIN 3 Some names that should exist do not exist .
NOTIMP 4 The name server does not support the specified opcode .
REFUSED 5 The name server refused to perform the specified operation for policy or security reasons .
YXDOMAIN 6 There are some names that shouldn't exist .
YXRRSET 7 There are some things that shouldn't exist RRset.
NXRRSET 8 There should be some RRset non-existent .
NOTAUTH 9 Server pair “ Area ” The areas named in the section are not authoritative .
NOTZONE 10 stay “ Prerequisite ” or “ to update ” The name used in the section is not in “ Area ” In the area indicated in part .
ZOCOUNT In the area section RR Count .
PRCOUNT In the prerequisites section RR Count .
UPCOUNT Update... In section RR Count .
ADCOUNT In the additional data section RR Count .
② Common status code analysis
RFC There are many status codes described in , But in most scenarios, only a few states are used , for example :
0 NOERROR、2 SERVFAIL、3 NXDOMAIN、5 REFUSED
The following is an introduction to several common scenarios of status codes :
1:NOERROR
Response code 0 —— NOERROR
When the server parses the result , Reply the result to the client , This status is NOERROR, example :
Environmental statement
DNS The server has test.com Authoritative District , There are the following records
test.com. 3600 NS ns.test.com.
ns.test.com. 3600 A 1.1.1.1
www.tes.tcom 3600 A 2.2.2.2
Scene one : The domain name is normally resolved to the record
1) Client to DNS Server resolution www.tes.tcom Of A Record
2) The server answers NOERROR, With :www.test.com 3600 A 2.2.2.2
Scene two : When requesting a domain name , If there is one type under the domain name type tree , Other types of responses are NOERROR
1) Client to DNS Server resolution www.tes.tcom Of TXT Record
2) The server answers NOERROR, With test.com Of SOA
2:SERVFAIL
Response code 2 —— SERVFAIL
recursive DNS The network from the server to the authoritative server is blocked , perhaps DNS Server error , Will lead to SERVFAIL
Environmental statement
1 Table recursion DNS:A;1 Taiwan authority DNS:B;1 A client :C
Scene one : recursive DNS To authority DNS Server due to network problems , Parsing timeout
1) The client initiates a request to the recursive server DNS analysis
2) Due to network problems , Recursive server to authority DNS Parsing timeout , Answer to the client SERVFAIL
Scene two : recursive DNS Cache an authority area NS Domain name NXDOMAIN state , When the client queries the domain name under this authoritative area , recursive DNS The reply SERVFAIL
1)new.test.com Of NS by ns.new.test.com, recursive DNS Inquire about ns.new.test.com Got it NXDOMAIN Response to .
2) Client side recursion DNS Inquire about new.test.com Domain name under the authority area , Then there is SERVFAIL
3:NXDOMAIN
Response code 3 —— NXDOMAIN
Resolve a domain name , This domain name does not have any type of resolution record , example :
Environmental statement
DNS The server has test.com Authoritative District , There are the following records
test.com. 3600 NS ns.test.com.
ns.test.com. 3600 A 1.1.1.1
www.tes.tcom 3600 A 2.2.2.2
Scene one : There is no type under the domain name type tree , The reply NXDOMAIN
1) Client to DNS Server resolution ww123.tes.tcom Of A Record
2) The server response code is NXDOMAIN, With test.com Of SOA
4:REFUSED
Response code 5 —— REFUSED
Client to DNS Server query domain name , But this DNS The server needs external recursive query , But this DNS It's not turned on DNS Recursive function , example :
Environmental statement
DNS The server turns off recursion , And there are test.com Authoritative District , There are the following records :
test.com. 3600 NS ns.test.com.
ns.test.com. 3600 A 1.1.1.1
new.test.com. 3600 NS ns.new.test.com
ns.new.test.com. 3600 A 2.2.2.2
1) The customer asked DNS The server initiates www.baidu.com. Query for
2)DNS The server answers REFUSED
This issue of cloud school will be shared here , If you have any questions about DNS Other problems with the status code , Welcome to leave a message at the bottom of the article , We will arrange professional engineers to answer your questions . Let's see you next time ~
版权声明
本文为[National Engineering Research Center]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210554571231.html
边栏推荐
- 微信中金财富高端专区安全吗,证券如何开户呢
- Local call feign interface message 404
- MFC obtains local IP (used more in network communication)
- WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
- NC basic usage 1
- Unity general steps for creating a hyper realistic 3D scene
- R language ggplot2 visual facet_wrap, and use the lineheight parameter to customize the height of the facet icon tab (gray label bar)
- antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
- Still using listview? Use animatedlist to make list elements move
- 【2022】将3D目标检测看作序列预测-Point2Seq: Detecting 3D Objects as Sequences
猜你喜欢

山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)

selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT

Building googlenet neural network based on pytorch for flower recognition
![[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached](/img/19/27631caff199fbf13f802decbd6ead.gif)
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached

Leetcode XOR operation

PCL点云处理之计算两平面交线(五十一)

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)

PHP reference manual string (7.2000 words)

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)

LeetCode异或运算
随机推荐
Rédaction de thèses 19: différences entre les thèses de conférence et les thèses périodiques
SRS deployment
Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion
本地调用feign接口报404
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线、自定义计算交叉点、自定义配置indifference函数的参数丰富可视化效果
Esp8266 - beginner level Chapter 1
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)
Use test of FFT and IFFT library functions of TI DSP
nc基础用法4
Compact CUDA tutorial - CUDA driver API
NC basic usage 2
微信中金财富高端专区安全吗,证券如何开户呢
Redis distributed lock
IIS data conversion problem: 16bit to 24bit
Devops integration - environment variables and building tools of Jenkins service
How about Bohai futures. Is it safe to open futures accounts?
SRS 的部署
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)
[problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
R语言ggplot2可视化:ggplot2可视化散点图并使用geom_mark_ellipse函数在数据簇或数据分组的数据点周围添加椭圆进行注释