![挖掘回應中的所有標誌是什麼?](https://rvso.com/image/668758/%E6%8C%96%E6%8E%98%E5%9B%9E%E6%87%89%E4%B8%AD%E7%9A%84%E6%89%80%E6%9C%89%E6%A8%99%E8%AA%8C%E6%98%AF%E4%BB%80%E9%BA%BC%EF%BC%9F.png)
dig
回覆在評論部分回傳標誌:
$ dig example.com +noall +comments
; <<>> DiG 9.8.3-P1 <<>> example.com +noall +comments
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29045
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
這裡的最後一行有標示:
flags: qr rd ra;
dig 有哪些可能的標誌?
以下是我迄今為止找到的清單:
答案1
答案2
從:http://www.perdisci.com/useful-links/dig-info
DIG response header:
Flags:
AA = Authoritative Answer
TC = Truncation
RD = Recursion Desired (set in a query and copied into the response if recursion is supported)
RA = Recursion Available (if set, denotes recursive query support is available)
AD = Authenticated Data (for DNSSEC only; indicates that the data was authenticated)
CD = Checking Disabled (DNSSEC only; disables checking at the receiving server)
Response code:
0 = NOERR, no error
1 = FORMERR, format error (unable to understand the query)
2 = SERVFAIL, name server problem
3= NXDOMAIN, domain name does not exist
4 = NOTIMPL, not implemented
5 = REFUSED (e.g., refused zone transfer requests)
答案3
欲了解更多信息,請閱讀:
RFC1035 - 4.1.1。標頭部分格式 (https://www.rfc-editor.org/rfc/rfc1035)
RFC6895 - 2. DNS 查詢/回應標頭 (https://www.rfc-editor.org/rfc/rfc6895)