[精讚] [會員登入]
822

[DNS] 使用dig去砍下整個zone (zone transfer)

使用dig去砍下整個zone 的指令

分享此文連結 //n.sfs.tw/15799

分享連結 [DNS] 使用dig去砍下整個zone (zone transfer)@新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
最後編修
2022-04-26 14:54:11 By 張○○
 

自動目錄

如果zone允許zone transfer的話,可以使用dig來砍下整個zone

指令

# dig AXFR example.com. @192.168.0.1

 example.com. 是你要砍下的zone

 192.168.0.1 是你目的的dns

測試

# dig  AXFR example.com. @192.168.0.1

成功案例

; <<>> DiG 9.11.26-RedHat-9.11.26-4.el8_4 <<>> AXFR example.com. @192.168.0.1
;; global options: +cmd
ccsh.example.com.    86400    IN    SOA    example.com. user.example.com. 2022042601 36000 3600 2592000 43200
ccsh.example.com.   86400    IN    TXT    "google-site-verification=JHJQ71uCcMVMbRJv7dKl0n"
ccsh.example.com.    86400    IN    TXT    "MS=10A14B281346B90C2BF3C0C07A"
... 以下略

失敗案例

; <<>> DiG 9.11.26-RedHat-9.11.26-4.el8_4 <<>> AXFR example.com. @192.168.0.1
;; global options: +cmd
; Transfer failed.

 

防止別人zone transfer

bind 預設是默許,在 options加下一行:

options {
 allow-transfer { none; };
}
 

 

參考資料

[1] https://help.dyn.com/use-dig-to-download-zone-data/

 

 

 

END

你可能感興趣的文章

使用GIT和GITHUB 教你如何使用git及github

鍵盤上特殊符號及按鍵的英文及中文讀法 鍵盤上特殊符號及按鍵的英文及中文要怎麼讀?

[FIREFOX] 好用的日文加拼音插件 furigana FIREFOX 替日文網頁中的漢字加上拼音的好用插件

中國的網路審查(資訊長城) 介紹中國的網路審查(簡字网络审查、資訊長城或防火長城)

使用Wayback machine來查看以前的網站 你以前的網站長什麼樣子,想必你一定記得,但是越來越模糊,還好有人幫你把他記錄下來

來自網路的爬蟲分析 分析最近來自網路上的爬蟲

隨機好文

[jQuery] select 元件的取值及給值 html中的元件select,在jquery中要如何使用?

[Freebsd] 使用 ADSL 撥接上網 Freebsd上要使用 ADSL 撥接上網,該如何設定?

[CodeIgniter3] 解決無法上傳特定檔案(.sb2)的問題 上傳時出現The filetype you are attempting to upload is not allowed,要怎麼解決?

好用的3+2碼郵遞區號查詢系統推薦 網路上找到用地址輸入判斷3+2碼郵遞區號的辨識率不高,除了這個網站…

[AS3] 變數型態 基本類型宣告 as3 有下列幾種基本類型:string, int, number, object, boolean, n