Top "Hosts-file" questions

The hosts file is a computer file used in an operating system to map hostnames to IP addresses.

Debugging why I get "You don't have permission to access" in Apache 2.4

I am trying to create a local environment in Linux/Ubuntu. I have install Apache 2.4.7 (using apt-get). I have changed …

apache vhosts hosts apache2.4 hosts-file
Unix - how to get IP address of domain name?

In a C program in UNIX, gethostbyname() can be used to obtain the address of domain like "localhost". How does …

c unix localhost hosts-file
proxy_pass does not resolve DNS using /etc/hosts

In nginx the proxy_pass directive is not resolving DNS using the /etc/hosts file. Any way to enable this …

nginx lua dns hosts hosts-file
Best way to determine if a domain name would be a valid in a "hosts" file?

The Windows Hosts file allows you to associate an IP to a host name that has far greater freedom than …

c# validation domain-name hosts-file
Adding Apache VirtualHost, DocumentRoot of localhost changes to the VirtualHost's DocumentRoot

Everything is working perfectly in my Windows 7. The problem is when I add a domain1.com as VirtualHost, localhost's DocumentRoot …

apache localhost virtualhost document-root hosts-file
Mac OS X ignoring hosts file

Mac seems to be ignoring new changes to my hosts file. Older changes work without a problem. I've spent the …

osx-lion mamp hosts-file
Prevent Chrome from caching a site's DNS records

Chrome caches DNS records and tends to ignore changes to the hosts file after it has successfully connected to my …

caching google-chrome dns hosts-file
Homestead 2.0 multiple sites, all link to the same url

Hee guys, little question: So i have setup the Homestead 2.0 and everything is working fine. I wanted to add another …

laravel hosts-file
IOError: 13, 'Permission denied' when writing to /etc/hosts via Python

I have a Python app that I'm working on that needs to access the hosts file to append a few …

python io privileges sudo hosts-file
How to set up a local DNS server in python

I am using windows 7 and python 2.7 I want to map 172.16.45.84 IP address to myapp.nobies.in without mapping in hosts …

python windows ssl dns hosts-file