How to recognize the edited hosts file | Windows 7

このサイトを検索 | Search this site
,release information

When editing the Windows system file [hosts], it is necessary to reflect it in the system.

[PLAN]

  1. Restart your PC
  2. run ipconfig

Well, the main subject.

[Ipconfig] used in PLAN-B is a Windows console application, and it has an option to immediately update the IP address and DNS.

No need to restart your PC.

[content]
  1. How to use ipconfig
  2. hosts location
  3. What to do if you can't find hosts
  4. What to do when hosts cannot be edited

I'm glad if you can use it as a reference.


How to use ipconfig

ipconfig is a Windows console application that can be run from a command prompt.

Used with ipconfig and a set of options.

The option to update hosts is [flushdns].

C:\>ipconfig /flushdns

1. Start the command prompt
* Operates with the command prompt normally started.

  • Run with file name (Win + R)> Name: cmd> OK
  • Start Menu> Search for programs and files (lower window)> Type cmd
  • Start Menu> All Programs> Accessories> Command Prompt

2.ipconfig /flushdns
When the command prompt starts, type the following command and press Return.
> ipconfig /flushudns
c:\_
command promptー □ × 
C:\>ipconfig /flushdns

Windows IP configuration

The DNS resolver cache has been flushed successfully.
3. End of procedure
This is the end of using ipconfig.
No need to restart your PC.

Make sure you can access the domain you added to hosts.

Location of hosts, attributes, how to edit, etc.

The hosts file can be found in multiple places, but Windows refers to:

I'm not sure what the role of hosts can be found elsewhere.

...(꒪⌓꒪)?

C:\Windows\System32\drivers\etc\hosts

don't have hosts?

hosts has a hidden file attribute.

If you can't find hosts in the location mentioned in the previous section, open "Folder Options" of Explorer and change the setting to show hidden files.

Tools> Folder Options> View> Details> Show Files and Folders

Select the Show hidden files, folders, and drives check box.

Can't edit hosts...?

hosts can be edited if the logged-in user has "full control" privileges.

Before editing hosts, let's log in with an account in the Administrators group.

Below is a snapshot of the properties of hosts.

Administrators are "Full Control".

hosts properties> full control


How to get access to hosts

[procedure]
  1. Display properties of hosts
  2. Select the Security tab
  3. Open Advanced Settings
  4. "Include permissions that can be inherited from this object's parent" Put a check

Virus, malware, KIOSK mode

Windows has the highest priority to refer to hosts when resolving names.

Using this mechanism, viruses and malware will do the following bad things.
  1. Add the IP address and domain of the phishing site to hosts
  2. Start the browser in KIOSK mode
  3. Click on a phishing link (the domain is legitimate)
  4. Phishing site is displayed

Since hosts are referenced with the highest priority, legitimate websites cannot be reached.

KIOSK mode is used to hide the address bar and hide that you are accessing a fake domain.

KIOSK
KIOSK mode is a simple screen browser window with no URL displayed. Phishing sites tend to be preferred because they make it difficult to check the URL of the site they are visiting.

Please be aware that we may enter your personal name, phone number, address, card information, etc. without noticing the phishing site.

Regularly check that the host has not been tampered with.

Summary

[How to use flushdns]
  1. Launch Command Prompt
  2. Run ipconfig /flushdns
  3. The latest information of hosts is cached in Windows

What is hosts?

hosts is a Windows system file, the filename is [hosts] with no extension.

If the host cannot resolve the name, a DNS inquiry will occur.

hosts> DNS

For more information on hosts, please read Wikipedia.

hosts is a database of host names on computers using TCP/IP, which is a text file that describes the correspondence between IP addresses and host names.
Wikipedia
Verification: Windows 7 32-bit/64-bit
SC2
ブログサークルSNS
クリックして応援してね!
人気ブログランキングPVアクセスランキング にほんブログ村ブログランキング・にほんブログ村へ

このサイトを検索 | Search this site