<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Etc-Hosts on Adamino CTF Writeups</title><link>https://ctf.adamino.dk/tags/etc-hosts/</link><description>Recent content in Etc-Hosts on Adamino CTF Writeups</description><generator>Hugo</generator><language>en</language><copyright>Adamino 2023</copyright><lastBuildDate>Sun, 07 Dec 2025 20:22:53 +0100</lastBuildDate><atom:link href="https://ctf.adamino.dk/tags/etc-hosts/index.xml" rel="self" type="application/rss+xml"/><item><title>Pretty Hostnames with /etc/hosts</title><link>https://ctf.adamino.dk/tools/misc/etc-hosts/</link><pubDate>Sun, 07 Dec 2025 20:22:53 +0100</pubDate><guid>https://ctf.adamino.dk/tools/misc/etc-hosts/</guid><description>&lt;p&gt;When attacking or enumerating a target, typing raw IPs everywhere is clunky and error-prone. A simple, built-in trick is to use &lt;code&gt;/etc/hosts&lt;/code&gt; to map an IP address to a friendly hostname so your tools, browser, and shell can use a memorable name.&lt;/p&gt;
&lt;p&gt;Example mapping:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;10.82.186.54 cybershield.nc3
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This lets you visit &lt;code&gt;http://cybershield.nc3&lt;/code&gt; in your browser, curl &lt;code&gt;cybershield.nc3&lt;/code&gt;, and point tools at the hostname instead of the IP.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What /etc/hosts Does&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Local override: Maps hostnames to IPs before DNS is queried.&lt;/li&gt;
&lt;li&gt;Zero dependencies: No DNS server required; works offline.&lt;/li&gt;
&lt;li&gt;System-wide: Applies to all applications on the machine.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;How to Add an Entry (macOS/Linux)&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>