rails subdomain on localhost
<p>I would like to test subdomains on localhost. I have following instructions: Before starting the server to run the application, the host should be configured so that the application can support subdomains for multiple users. To do that, go to your hosts file by typing <code>sudo nano /etc/hosts</code> in your terminal, then add subdomains at the end of the file as below:</p>

<pre><code>127.0.0.1 admin.daycare.no
127.0.0.1 daycare.no
127.0.0.1 worker.daycare.no
127.0.0.1 manager.daycare.no
127.0.0.1 parent.daycare.no
</code></pre>

<p>I followed the above instructions. The following error was encountered while trying to retrieve the URL: <code>http://daycare.no:3000/</code> </p>

<pre><code>Unable to determine IP address from hostname daycare.no
The DNS server returned: Name Error: The domain name does not exist.
This means that the cache was not able to resolve the hostname presented in the URL. 
Check if the address is correct.
</code></pre>

<p>How can I solve this, please?</p>