how to bypass internal DNS?
Posted
by
fabjoa
on Server Fault
See other posts from Server Fault
or by fabjoa
Published on 2011-03-12T23:25:55Z
Indexed on
2011/03/13
0:12 UTC
Read the original article
Hit count: 587
This is about Ubuntu but should be pretty much the same on all Linux flavors. Let's say I add an entry to my /etc/hosts
such as
127.0.1.12 facebook.com
and an Apache virtual host such as
<VirtualHost 127.0.1.12>
ServerName facebook.com
DocumentRoot /var/www
</VirtualHost>
when i open my browser and send a GET request to facebook.com, firefox will browse my /var/www folder.
Question: How could I fetch (ie, using wget in bash) the real facebook.com domain - without erasing the entry in /etc/hosts nor my Apache VirtualHost -- IOW how could I bypass internal DNS?
© Server Fault or respective owner