Windows 10 - Hosts-Datei bearbeiten
In diesem Tutorial zeigen wir Ihnen, wie Sie eine Zuordnung von IP-Adressen zu Hostnamen in der Windows-Hosts-Datei hinzufügen.
Windows Hosts file
C: \ Windows \ System32 \ drivers \ etc \ hosts
1. Notepad - Als Administrator ausführen
Geben Sie im Desktop-Suchfeld links unten den Editor ein, klicken Sie mit der rechten Maustaste auf das Notizblock-Symbol und wählen Sierun as administrator aus.
2. Hosts bearbeiten
2.1 In Notepad (make sure run as administrator), locate and open the following file :
C:\Windows\System32\drivers\etc\hosts
P.S In the open file dialog, select “All Files (.)”
2.2 Add a mapping of IP address to host name.
C:\Windows\System32\drivers\etc\hosts
# Copyright (c) 1993-2009 Microsoft Corp. # #... # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost #add this new line 45.56.65.145 linode-hydra
3. Probier es aus
In der Eingabeaufforderung ping linode-hydra wird jetzt 45.56.65.145 zurückgegeben
Eingabeaufforderung
C:\Users\example>ping linode-hydra Pinging linode-hydra [45.56.65.145] with 32 bytes of data: Reply from 45.56.65.145: bytes=32 time=276ms TTL=51 Reply from 45.56.65.145: bytes=32 time=278ms TTL=51 Reply from 45.56.65.145: bytes=32 time=279ms TTL=51 Ping statistics for 45.56.65.145: Packets: Sent = 3, Received = 3, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 276ms, Maximum = 279ms, Average = 277ms