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
# 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.exampleFile details
Download from the command line
curl -L -o hosts https://files.samplefiles.com/config/hosts/hostswget https://files.samplefiles.com/config/hosts/hostshttps://files.samplefiles.com/config/hosts/hostsprintf '%s %s\n' a70274ac02378a31ce7c0f7b3625f625b94bd8edac70d026cbcc095aa9dd2c34 hosts | shasum -a 256 -cOr check the download in your browser with the checksum calculator.