[Cialug] Faking DNS

Matthew Nuzum newz at bearfruit.org
Thu May 13 19:56:57 CDT 2010


On Thu, May 13, 2010 at 7:48 PM, L. V. Lammert <lvl at omnitec.net> wrote:

> On Thu, 13 May 2010, Matthew Nuzum wrote:
>
> > Hi, if you need simple testing you can use telnet.
> >
> > $ telnet 11.22.33.44 80
> > GET / HTTP/1.1
> > Host: www.my-fake-site.com
> >
> Thanks for the suggestioh, but these are name-based hosts, ... simply
> telnetting to the IP is the same as using the IP in a browser - it gets
> the first site configured on the server [which is another issue entirely
> - making sure the 'Site is not on this server' message is the first in
> line <G>!].
>
>
>

Nope.

Name-based hosts work off the Host http header. You can telnet to the IP but
then you have to enter the Host: header after the GET request.

-- 
Matthew Nuzum
newz2000 on freenode, skype, linkedin, identi.ca and twitter

"Do not seek to follow in the footsteps of the wise. Seek what they sought."
–Matsuo Bashō
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20100513/503b6f7d/attachment.htm 


More information about the Cialug mailing list