ÔõÑù¼ì²éÓòÃûÆÊÎö
Òª¼ì²éÓòÃûÆÊÎöÊÇ·ñ׼ȷ£¬¿ÉÒÔʹÓÃÏÂÁîÌáÐÑ·û£¨»òÖնˣ©¡¢µÚÈý·½¹¤¾ß»ò ping ÏÂÁî¡£ÏÂÁîÌáÐÑ·ûÏÂÁîΪ nslookup £¬µÚÈý·½¹¤¾ß°üÀ¨ mxtoolbox dns lookup tool ºÍ intodns dig£¬ping ÏÂÁîΪ ping ¡£±ðµÄ£¬¼ì²éÖ÷»úÎļþ£¨windows£ºc:\windows\system32\drivers\etc\hosts£¬macos ºÍ linux£º/etc/hosts£©ÒÔ²éÕÒÈκÎÊÖ¶¯Ìí¼ÓµÄÆÊÎöÏÈôÓв»×¼È·ÆÊÎöÏî
ÔõÑù¼ì²éÓòÃûÆÊÎö
ÓòÃûÆÊÎöÊǽ«ÓòÃû£¨ÀýÈç google.com£©×ª»»ÎªÆä¶ÔÓ¦µÄ»¥ÁªÍøÐÒé (IP) µØµã£¨ÀýÈç 142.250.189.144£©µÄÀú³Ì¡£Òª¼ì²éÓòÃûÆÊÎöÊÇ·ñ׼ȷ£¬¿ÉÒÔʹÓÃÒÔÏ°취£º
1. ʹÓÃÏÂÁîÌáÐÑ·û
·¿ªÏÂÁîÌáÐÑ·û£¨¹ØÓÚ Windows Óû§£©»òÖնˣ¨¹ØÓÚ macOS ºÍ Linux Óû§£©¡£
¼üÈëÒÔÏÂÏÂÁ
nslookup
µÇ¼ºó¸´ÖÆ
ÀýÈ磺nslookup google.com
¸ÃÏÂÁ·µ»ØÓйØÓòÃûÆÊÎöµÄÏêϸÐÅÏ¢£¬°üÀ¨£º
ȨÍþÃû³ÆЧÀÍÆ÷£º´æ´¢ÓòÃûÆÊÎöÐÅÏ¢µÄЧÀÍÆ÷¡£
Ãû³ÆЧÀÍÆ÷£ºÆÊÎöÅÌÎʵÄЧÀÍÆ÷¡£
IP µØµã£ºÓëÓòÃû¹ØÁªµÄ IP µØµã¡£
2. ʹÓõÚÈý·½¹¤¾ß
¿ÉÒÔʹÓÃÔÚÏß¹¤¾ß»ò×ÀÃæÓ¦ÓóÌÐò¼ì²éÓòÃûÆÊÎö¡£Ò»Ð©Ê¢ÐеÄÑ¡Ïî°üÀ¨£º
MXToolbox DNS Lookup Tool
IntoDNS
Dig
ÕâЩ¹¤¾ßÔÊÐíÄúÊäÈëÓòÃû²¢»ñµÃÓйØÆäÆÊÎöÐÅÏ¢µÄÏêϸ±¨¸æ¡£
3. ʹÓÃpingÏÂÁî
·¿ªÏÂÁîÌáÐÑ·û»òÖնˡ£
¼üÈëÒÔÏÂÏÂÁ
ping
µÇ¼ºó¸´ÖÆ
ÀýÈ磺ping google.com
¸ÃÏÂÁÏòÓòÃû·¢ËÍÊý¾Ý°ü²¢ÏÔʾÓйØÆäÅþÁ¬Ï¢ÕùÎöʱ¼äµÄÐÅÏ¢¡£ÈôÊÇÅþÁ¬Àֳɣ¬Äú½«¿´µ½ÀàËÆÒÔϵÄÊä³ö£º
Pinging google.com [142.250.189.144] with 32 bytes of data: Reply from 142.250.189.144: bytes=32 time=15ms TTL=55 Reply from 142.250.189.144: bytes=32 time=14ms TTL=55 Reply from 142.250.189.144: bytes=32 time=14ms TTL=55 Reply from 142.250.189.144: bytes=32 time=15ms TTL=55
µÇ¼ºó¸´ÖÆ
4. Éó²éÖ÷»úÎļþ
Ö÷»úÎļþÊÇ¿ÉÒÔÊÖ¶¯Ìí¼ÓÓòÃûÆÊÎöÏîµÄÎļþ¡£ÔÚ Windows ÖУ¬Ö÷»úÎļþλÓÚ C:\Windows\System32\drivers\etc\hosts£¬ÔÚ macOS ºÍ Linux ÖÐλÓÚ /etc/hosts¡£
¼ì²éÖ÷»úÎļþÒÔ²éÕÒÈκÎÒÑÊÖ¶¯Ìí¼ÓµÄÆÊÎöÏî¡£ÈôÊDZ£´æ²»×¼È·µÄÆÊÎöÏÇ뽫Æäɾ³ý¡£
ÒÔÉϾÍÊÇÔõÑù¼ì²éÓòÃûÆÊÎöµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡