Re: [Hampshire] Using the host file

Top Page
Author: Andy Smith
Date:  
To: hampshire
Subject: Re: [Hampshire] Using the host file

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57900100.hantslug.org.uk.23056': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Fri May 24 07:43:07 2013 BST
gpg: using DSA key 2099B64CBF15490B
gpg: Can't check signature: No public key
Hi Tim,

On Thu, May 23, 2013 at 06:39:23PM +0100, Tim wrote:
> How can I check that the web browser is accessing the web site via
> the changes I made in the host file and not using the old
> settings?


You could run tcpdump to view your outbound port 80 traffic.

# tcpdump -vpn 'dst port 80'

or if you're only interested in packets to 1.1.1.1:

# tcpdump -vpn 'dst host 1.1.1.1'

If you are more used to graphical application then you may prefer
Wireshark. The interface may be more daunting than the fairly simple
tcpdump though..

I have noticed that web browsers tend to cache DNS lookups quite
aggressively so perhaps you just need to restart it, clear the
cache, use a different browser, or a different browser profile etc.

Cheers,
Andy

--
http://bitfolk.com/ -- No-nonsense VPS hosting
--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------