tan2818 發表於 2012-9-21 23:08:48

【Hosts Manager 網路hosts檔多重組態切換器】

<P align=center><STRONG><FONT size=5>【<FONT color=red>Hosts Manager 網路hosts檔多重組態切換器</FONT>】</FONT></STRONG></P>
<P>&nbsp;</P>
<P><STRONG>在電腦中有個檔案叫「hosts」,它是早期還沒使用DNS來對應網域名稱與IP位址之前,讓本機電腦可以對應主機名稱與IP位址的機制,沿用到現在,透過hosts檔來做些網路管理工作還是相當方便。</STRONG></P>
<P><STRONG></STRONG>&nbsp;</P>
<P><STRONG>以一個簡單的例子來說,如果你原本使用A虛擬主機,現在想換用到B虛擬主機,由於配發的IP位址不同,我們不能等到更新DNS設定之後才來做網站搬家工作或機器的維護與檢測。</STRONG></P>
<P><STRONG></STRONG>&nbsp;</P>
<P><STRONG>這時,可以只修改自己電腦中的「hosts」檔案,將原本的網域先行對應到新的IP位址,讓我們的電腦可以在未調整DNS之前,就可以先用不同的網域名稱與IP位址的組合來做些簡單的管理與檢測工作。</STRONG></P>
<P><BR><STRONG>或者說,如果你希望電腦在瀏覽網頁時,可以將某個網址轉到其他網站去,或者不希望電腦使用者開啟某些網址,也都可以透過hosts的設定與修改來達到目的。</STRONG></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><STRONG><FONT color=blue size=4>▇ 軟體小檔案 ▇&nbsp;&nbsp;&nbsp;&nbsp; </FONT></STRONG></P>
<LI><STRONG><FONT color=blue size=4>軟體名稱:Hosts Manager </FONT></STRONG>
<LI><STRONG><FONT color=blue size=4>軟體版本:1</FONT></STRONG><A href="http://briian.com/?p=6708" target=_blank><FONT color=blue size=4><STRONG>.</STRONG></FONT></A><STRONG><FONT color=blue size=4>0 </FONT></STRONG>
<LI><STRONG><FONT color=blue size=4>軟體語言:英文 </FONT></STRONG>
<LI><STRONG><FONT color=blue size=4>軟體性質:免費軟體 </FONT></STRONG>
<LI><STRONG><FONT color=blue size=4>檔案大小:339KB </FONT></STRONG>
<LI><STRONG><FONT color=blue size=4>系統支援:<SPAN class=t_tag href="tag.php?name=Windows">Windows</SPAN> 98/2000/XP/2003/Vista/7(需</FONT></STRONG><A href="http://briian.com/?p=6708" target=_blank><FONT color=blue size=4><STRONG>.</STRONG></FONT></A><STRONG><FONT color=blue size=4>NET Framework 3.5支援) </FONT></STRONG>
<LI><STRONG><FONT color=blue size=4>官方網站:</FONT></STRONG><A href="http://hostsmanager.sourceforge.net/" target=_blank><FONT color=red size=4><STRONG><SPAN class=t_tag href="tag.php?name=http">http</SPAN>://hostsmanager.sourceforge.net</STRONG></FONT></A><STRONG><FONT color=blue size=4> </FONT></STRONG>
<LI><FONT color=blue size=4><STRONG>軟體下載:</STRONG></FONT><A href="http://sourceforge.net/projects/hostsmanager/files/Hosts%20Manager%20Setup.msi/download" target=_blank copy="from_http://briian.com/"><FONT color=red size=4><STRONG>按這裡</STRONG></FONT></A>
<P>&nbsp;</P></LI>
<P><STRONG>Windows系統的HOSTS檔位置:<BR><BR>Windows 95/98/Me在:%WinDir%\ </STRONG></P><STRONG>
<P><BR>Windows NT/2000/XP/2003/Vista/7在:%SystemRoot%\system32\drivers\etc\ <BR>&nbsp;</P>
<P>使用方法: </P>
<P><BR>第1步&nbsp; 下載並安裝好Hosts Manager軟體後,它會自動將電腦目前的hosts檔設定複製一份並命名成「Default」。</P>
<P>&nbsp;</P>
<P>此時我們可以在桌面右下角的Hosts Manager圖示按一下滑鼠右鍵再點選「New」,新增一個新的設定檔。</P>
<P>&nbsp;</P>
<P align=center></P>
<P>&nbsp;</P>
<P>第2步&nbsp; 請幫這個設定檔取一個名字。</P>
<P>&nbsp;</P>
<P align=center></P>
<P>&nbsp;</P>
<P>第3步&nbsp; 然後用記事本或其他你慣用的純文字編輯器開啟新的hosts檔案,然後再最下面新增一筆資料,或者依照你的實際需求編輯檔案內容,全部完成後再存檔、關閉視窗。</P>
<P>&nbsp;</P>
<P>hosts檔中的資料編寫方式為:</P>
<P>&nbsp;</P>
<P align=center></P>
<P>&nbsp; </P>
<P>第4步&nbsp; 完成後,當我們在Hosts Manager圖示按右鍵,選單中會出現另外一個組態設定,當你需要更換網域名稱與IP位址對應的設定值時,可以點選新的設定檔來用。</P>
<P>&nbsp;</P>
<P align=center></P>
<P>&nbsp;</P>
<P>第5步&nbsp; 按了之後馬上用ping或nslookup來查一下,確實已經換了IP位址了。</P>
<P>&nbsp;</P>
<P align=center></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>引用:<A href="http://briian.com/?p=6708&amp;utm_source=feedburner&amp;utm_medium=email&amp;utm_campaign=Feed%3A+briian+%28briian.com%29&amp;utm_content=Yahoo%21+Mail">http://briian.com/?p=6708&amp;utm_source=feedburner&amp;utm_medium=email&amp;utm_campaign=Feed%3A+briian+%28briian.com%29&amp;utm_content=Yahoo%21+Mail</A></P>
<P></STRONG>&nbsp;</P>
頁: [1]
查看完整版本: 【Hosts Manager 網路hosts檔多重組態切換器】