[Cialug] Faking DNS

Dave Weis djweis at internetsolver.com
Thu May 13 20:23:19 CDT 2010


Set up other names for the vhost under your domain in apache. Also don't use absolute url's so tricks like this keep working.


________________________________
From: cialug-bounces at cialug.org <cialug-bounces at cialug.org>
To: Central Iowa Linux Users Group <cialug at cialug.org>
Sent: Thu May 13 19:41:02 2010
Subject: Re: [Cialug] Faking DNS

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<http://www.my-fake-site.com>

(press enter twice)

You can also test SSL from the command line the same way with a little help:
http://www.bearfruit.org/2008/04/17/telnet-for-testing-ssl-https-websites/

On Thu, May 13, 2010 at 7:09 PM, L. V. Lammert <lvl at omnitec.net<mailto:lvl at omnitec.net>> wrote:
Say you have a name-based server configuration, .. the only way to test
a site is to fake your local DNS in order to pass the correct URL in the
link to the IP of your test server.

That works fine if you are controlling the machine [i.e. edit the hosts
file and substitute the test IP for that domain name], .. but how do you
'give' a URL to the client to view?

Any redirection would break the test as the first time you click a link on
the test site it would direct to the 'real' site.

       Lee
_______________________________________________
Cialug mailing list
Cialug at cialug.org<mailto:Cialug at cialug.org>
http://cialug.org/mailman/listinfo/cialug



--
Matthew Nuzum
newz2000 on freenode, skype, linkedin, identi.ca<http://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/8e1f4121/attachment.htm 


More information about the Cialug mailing list