Config Files · 1 file

Sample Hosts File

The hosts file maps names to IP addresses before DNS is consulted. Our sample is realistic and valid for its tool, with fake hosts and secrets.

hosts · 296 B

hosts file

A /etc/hosts file with loopback entries, IPv6 lines, local development names and a blocked domain. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

hosts — first lines
# Sample /etc/hosts — samplefiles.com
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
255.255.255.255 broadcasthost

# Local development
127.0.0.1       app.test api.app.test
192.0.2.25      staging.example.internal

# Blocked
0.0.0.0         ads.tracker.example

File details

Size
296 B (296 bytes)
MIME type
text/plain
SHA-256
a70274ac02378a31ce7c0f7b3625f625b94bd8edac70d026cbcc095aa9dd2c34
MD5
96bb53dc0416a73e9ec58b5b143efd58

Download from the command line

curl -L -o hosts https://files.samplefiles.com/config/hosts/hosts

Or check the download in your browser with the checksum calculator.