[thelist] DNS aliasing

Ken Schaefer ken at adOpenStatic.com
Mon Oct 20 07:37:03 CDT 2003


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Ed McCarroll" <Ed at ComSimplicity.com>
Subject: [thelist] DNS aliasing


: I'm trying to set up my development system (Win2K Pro/IIS/IE 6.x)
: so that it mirrors the client's.  I'd like to fix it so that when
: I browse to:
:
:   foo.myDomain.org/bar.html
:
: the domain is automatically redirected to:
:
:   //localhost/myDomain/foo/bar.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


You can either edit the entries in your DNS server
    -or-
If you don't have a DNS server, stick a manual entry in your Windows Hosts
file

That said, you can only redirect a name to an IP address. You can't redirect
a name to a file, in a folder, on another server, eg:

You can do:
foo.MyDomain.com -> localhost

but you can't do;
foo.myDomain.com/somefile.htm -> localhost/somefolder/someotherfile.htm

All you can do is:
foo.myDomain.com/somefile.htm -> localhost/somefile.htm
(because the domain name part is automatically resolved to the IP address
that localhsot resolves to).

You'd need something on your server to do anything additional (eg some kind
of redirect script).

Cheers
Ken

Microsoft MVP - Windows Server (IIS)




More information about the thelist mailing list