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
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?