[vox-tech] Tracking down a "redirect"

Mark K. Kim lugod2 at cbreak.org
Wed Jun 14 15:57:25 PDT 2006


On Wed, Jun 14, 2006 at 03:16:50PM -0700, Micah J. Cowan wrote:
> On Wed, Jun 14, 2006 at 02:30:54PM -0700, Richard Crawford wrote:
[snip]
> > Domain http://unexdlc.ucdavis.edu should be resolving to IP address 
> > 152.79.198.9.  However, it is instead resolving to http://extensiondlc.net, 
> > which is an entirely different IP address.  Similarly, typing 
> > http://152.79.198.9 into a browser brings up extensiondlc.net, which should 
> > not be happening.
[snip]
> You say "... should be resolving to IP address 152.79.198.9." However,
> according to dig:
[snip]
>     unexdlc.ucdavis.edu.    7200    IN      CNAME   extensiondlc.net.
>     extensiondlc.net.       86364   IN      A       204.11.233.24

Furthermore, connecting directly to 152.79.198.9 causes "301 Moved
Permanently" redirection to unexdlc.ucdavis.edu, which is an alias for
extensiondlc.net.  So it appears to be a 2-layer problem - DNS as well
as some server issue.

Output with HTTP/1.0 connection:

  $telnet 152.79.198.9 80
  Trying 152.79.198.9...
  Connected to 152.79.198.9.
  Escape character is '^]'.
  GET / HTTP/1.0
  
  HTTP/1.1 301 Moved Permanently
  Date: Wed, 14 Jun 2006 22:48:15 GMT
  Server: Apache/2.0.44 (Unix) mod_perl/1.99_08 Perl/v5.8.0 DAV/2
  Location: http://unexdlc.ucdavis.edu/
  [snip]

  $host unexdlc.ucdavis.edu
  unexdlc.ucdavis.edu is an alias for extensiondlc.net.
  extensiondlc.net has address 204.11.233.24
  [snip]

and you get the same output if you use HTTP/1.1 with host set to
152.79.198.9.  FYI, if you try HTTP/1.1 with host set to
unexdlc.ucdavis.edu:

  $telnet 152.79.198.9 80
  Trying 152.79.198.9...
  Connected to 152.79.198.9.
  Escape character is '^]'.
  GET / HTTP/1.1
  host: unexdlc.ucdavis.edu
  
  HTTP/1.1 302 Found
  Date: Wed, 14 Jun 2006 22:52:50 GMT
  Server: Apache/2.0.44 (Unix) mod_perl/1.99_08 Perl/v5.8.0 DAV/2
  Location: http://unexdlc.ucdavis.edu/cfmx/DLC/
  Content-Length: 340
  Content-Type: text/html; charset=iso-8859-1
  
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>302 Found</title>
  </head><body>
  <h1>Found</h1>
  <p>The document has moved <a
  href="http://unexdlc.ucdavis.edu/cfmx/DLC/">here</a>.</p>
  <hr />
  <address>Apache/2.0.44 (Unix) mod_perl/1.99_08 Perl/v5.8.0 DAV/2 Server
  at unexdlc.ucdavis.edu Port 80</address>
  </body></html>
  
  Connection closed by foreign host.

It's a "302 Found" but it tells you to go to unexdlc.ucdavis.edu which
is an alias for extensiondlc.net.  However you look at it, you're being
sent to extensiondlc.net.

Someone sure went to great lengths to redirect everything to
extensiondlc.net.  Are you trying to undo the redirection?

-Mark


More information about the vox-tech mailing list