安裝
在解壓出來的檔案裡點選bindinstall.exe
按提示設定密碼之後點install直接按提示安裝就好了,沒裝vs2017的它會給你點安裝的。
出現安裝成功的提示就可以了,預設安裝路徑為c:\program files\isc bind 9
配置
在安裝目錄\etc
目錄下,建立檔案named.conf
named.conf
按照options ;
// 僅允許本機和子網內的機器查詢
allow-query ;
};// 根dns
zone "." ;
// localhost
zone "localhost" in ;
};// localhost的反向解析
zone "0.0.127.in-addr.arpa" ;
// examplevchat.com
zone "examplevchat.com" in ;
named.conf
中的配置,我們還要準備如下檔案
localhost.zone
localhost.rev$ttl 1d
@ in soa localhost. root.localhost. (
2007091701 ; serial
30800 ; refresh
7200 ; retry
604800 ; expire
300 ) ; minimum
in ns localhost.
localhost. in a 127.0.0.1
examplevchat.com.zone$ttl 1d
@ in soa localhost. root.localhost. (
2007091701 ; serial
30800 ; refresh
7200 ; retry
604800 ; expire
300 ) ; minimum
in ns localhost.
1 in ptr localhost.
完成以上配置之後目錄如下:examplevchat.com. in soa ns1.examplevchat.com. root.examplevchat.com. (
2007091701 ; serial
30800 ; refresh
7200 ; retry
604800 ; expire
300 ) ; minimum
in ns ns1.examplevchat.com.
* in a 192.168.110.10
啟動
我們來到安裝目錄\bin
下就可以啟動dns伺服器啦!
按住shift
在空白處點選滑鼠右鍵,選擇在此處開啟命令視窗
named -f -g -d 1
以服務方式啟動dns伺服器:
net start named
結束dns伺服器:
net stop named
正常啟動ntbind:
正常啟動後,將我們自己的電腦預設的dns伺服器改成dns伺服器的ip位址,隨後在瀏覽器中訪問 examplevchat.com,就會指向我們設定的192.168.110.10,這是我聊天伺服器的位址,也就是說會開啟192.168.110.10。
更改自己電腦的dns設定:
Django 區域網配置
木子三金 想要讓區域網的小夥伴訪問你的django專案,只需進行如下步驟 1.在setting.py中找到 allowed hosts 改為 allowed hosts 2.啟動服務時使用如下命令列 python manage.py runserver 0.0.0.0 31453.在防火牆中開啟埠的...
區域網windows遠端連線
開始執行 mstsc 使用者名稱 administrator 在windows xp下,不管是從網路上訪問其他機器,還是使用遠端桌面功能登入系統,常常遇到類似 由於帳戶限制你無法登入 的提示,這是由於你所使用的登入帳號的密碼為空,並且所要登入的遠端計算機中的 組策略 禁止空密碼使用者通過網路登入引起...
windows下實現Git在區域網使用
摘要 1.首先在主機a上建立乙個資料夾用於存放你要公開的版本庫。然後進入這個資料夾,右鍵 git create repository here,彈出的視窗中勾選make it bare!之後將這個資料夾完全共享 共享都會吧?注意許可權要讓使用這個資料夾的使用者為 完全控制 1.首先在主機a上建立乙個...