修改 windows hosts/ 檢查是否生效 [本地指定主機轉址]
修改 windows hosts/ 檢查是否生效 [本地指定主機轉址]
資料來源: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiAreqSpf_6AhVOAIgKHTdeDF0QFnoECBMQAw&url=https%3A%2F%2Fwww.nublue.co.uk%2Fguides%2Fedit-hosts-file%2F&usg=AOvVaw2-DdH__wtXGOTdTI5a9nGv
https://blog.csdn.net/qq_44868502/article/details/104340163
01.In Windows 10 the hosts file is located at 『c:\Windows\System32\Drivers\etc\hosts』 [GOOGLE: windows hosts path] ~ 重新開機才能生效
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 192.168.1.4 test.vteampos.com
02.測試 BAT/CMD
nslookup test.vteampos.com 或 ping test.vteampos.com
03.輸入命令讓該記錄不用重啟而立即生效
ipconfig /displaydns ipconfig /flushdns