多奇 IT 部落格

記錄著多奇數位在工作中對資訊技術的心得筆記

這幾天在研究DNS,並使用Windows Server 2012來架設DNS Server,

因為沒有特別去申請對外的DNS網域,因此就簡單在內部網路驗證了一下DNS server是否正常運作~

 

◎記得ping不到時要先檢查Windows 防火牆設定

◎DNS server設定正解(A紀錄)後client端使用nslookup會發現server uknown:

clip_image001

nslookup會先使用慣用DNS伺服器進行反解,如果沒有建立PTR紀錄就會出現unknown,

這時候只要在DNS server上建立一筆反解(PTR-pointer)即可:

clip_image003

再nslookup一次,可以發現default server name正常了:

clip_image004


◎改hosts檔騙client,以為連過去的FQDN叫做「haha」!!!

修改%systemroot%\system32\drivers\etc\hosts

clip_image005

立刻試Ping看看XD:

clip_image006



◎利用nslookup指令以驗證DNS sevrer是否正常:


nslookup

:可以看到目前預設DNS FQDN和IP

Set all

:可以看到目前的設定值

clip_image007


Server [IP]

:可以暫時切換到別的DNS server

clip_image008


Nslookup -type=a www.google.com 192.168.2.95

:代表我要找A紀錄,尋找FQDN為www.google.com,利用192.168.2.95這個DNS server

clip_image009


Ipconfig /flushdns

:可清除DNS快取紀錄

clip_image010


Nslookup

ls –t A test

:在client端要查DNS server上的A紀錄(Domain:test)時,會發現Query refused的狀況

clip_image011

這是因為若要取得DNS server上的Resource Record,必須在DNS server上允許其他伺服器來Request區域轉送(Zone Transfer):

clip_image012

在client端再次輸入一次指令,可查閱DNS server上的A紀錄:

clip_image013

留言與評論

SQ0CFkqQDaiuJ

270622 880763I like this blog so a lot, saved to bookmarks . 40621

SQ0CFkqQDaiuJ

Gardenia grievei

The whole horticulture process can be quite a lot to take and very confusing from first, especially if anyone don't have the best information to help you along the particular way. This article is going to provide you with the particular facts that will begin you down this very rewarding experience. Don't delay any longer to help increase the garden of your current desires!

Gardenia grievei

LqZO

705408 429930Great artical, I unfortunately had some problems printing this artcle out, The print formating looks a little screwed over, something you might want to look into. 244097

LqZO

本篇文章的留言功能已關閉!