Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to redirect port 80 to 81 for a domain

1,216 views
Skip to first unread message

jb

unread,
Jun 5, 2001, 3:12:55 PM6/5/01
to
Hi,
I have a domain ex : test.com
i have an http server responding on port 80
and an other on port 81
together on the same ip adress
I want to connect on test.com using port 81
How can i do this ?
I have bind 9.1.1 can i configure my dns
for doing this ?
How can i do this ?
thanks for help !!!
ps : excuse my bad english :-)


Michael Kjorling

unread,
Jun 5, 2001, 3:27:22 PM6/5/01
to

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DNS is completely unrelated to port numbers (except that it uses port
53 by definition) - there is no way to do this in the DNS. You need to
read up on your web server's configuration.


Michael Kjörling

- --
Michael Kjörling - mic...@kjorling.com - PGP: 8A70E33E
"We must be the change we wish to see" (Mahatma Gandhi)

^..^ Support the wolves in Norway -- go to ^..^
\/ http://home.no.net/ulvelist/protest_int.htm \/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7HS86KqN7/Ypw4z4RAh5UAJwNm/pSIuMZinhvWXkRSBDrSBWLiQCfXj7f
NlAIjEqRTr6nn6K5Q/eKKDg=
=zDNz
-----END PGP SIGNATURE-----


Leonardo Rodrigues Magalhães

unread,
Jun 5, 2001, 3:29:11 PM6/5/01
to

Simple, you cant. Bind ( I mean DNS ) cares ONLY on resolving names to IP and IP to names. If you want to connect on port 81, you should use:

http://your.server.com:81/

Leonardo Rodrigues

Randy Adams

unread,
Jun 5, 2001, 3:38:42 PM6/5/01
to

Or configure your web server to respond differently based on the HTTP
header.

Apache (and most other web servers) supports virtual name hosting. So that a
single server with a single IP can serve different differnt content based on
the domain name requested.

ie.

http://testdomain1.com
http://testdomain2.com

would both resolve to one IP address. The http request sent to the server
would contain a request for either testdomain1.com, or testdomain2.com. The
server would respond with the appropriate content.

The virtual host config info for apache can be found here.
http://httpd.apache.org/docs-2.0/vhosts/

Good luck.

Randy Adams
Network Manager
TELUS Communications Inc.
Technology & Operations
(403)503-3011

got snow???
http://www.skiamigos.com

Adam Lang

unread,
Jun 5, 2001, 3:41:56 PM6/5/01
to

The only way to do this is to:

enter in your web browser www.test.com:81
or
have your web browser behind a firewall/accelerator or something and have
that firewall route requests to the different port.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com


----- Original Message -----
From: "Michael Kjorling" <mic...@kjorling.com>
To: "BIND-Users" <bind-...@isc.org>
Sent: Tuesday, June 05, 2001 3:12 PM
Subject: Re: How to redirect port 80 to 81 for a domain


>


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> DNS is completely unrelated to port numbers (except that it uses port
> 53 by definition) - there is no way to do this in the DNS. You need to
> read up on your web server's configuration.
>
>
> Michael Kjörling
>
>
> On Jun 5 2001 16:44 -0000, jb wrote:
>

> > Hi,
> > I have a domain ex : test.com
> > i have an http server responding on port 80
> > and an other on port 81
> > together on the same ip adress
> > I want to connect on test.com using port 81

Kevin Darcy

unread,
Jun 5, 2001, 5:05:24 PM6/5/01
to

This isn't possible to do with just DNS until browsers start using
SRV records. Until then, the most that DNS can do here is map a name to
an address, not a name to an address+port. You'd probably be better off
configuring name-based virtual hosting in your webserver and/or having
the webserver on port 80 redirect to a port 81 URL.


- Kevin

arjen...@3va.net

unread,
Jun 5, 2001, 5:16:46 PM6/5/01
to

You can install a firewall on your webserver that redirects requests
for 80 to 81... for instance ipchains on Linux does this

Grtz,

Arjen.

Todd Snyder

unread,
Jun 5, 2001, 5:20:17 PM6/5/01
to

Can't apache do this by itself using name based virtual hosting?

-----Original Message-----
From: arjen...@3va.net [mailto:arjen...@3va.net]
Sent: Tuesday, June 05, 2001 5:06 PM
To: jb
Cc: comp-protoc...@moderators.isc.org
Subject: Re: How to redirect port 80 to 81 for a domain

arjen...@3va.net

unread,
Jun 5, 2001, 5:36:25 PM6/5/01
to

On Tue, 5 Jun 2001, Todd Snyder wrote:

> Can't apache do this by itself using name based virtual hosting?

Then you still must type

http://www.domainname.ext:81 to get there.

But, this is not a DNS issue. Let's stop the thread....

Grtz,

Arjen.

Kerry Liles

unread,
Jun 5, 2001, 6:22:34 PM6/5/01
to
There are also lots of port remapper programs out there too... You can
accept stuff coming in on 80 and redirect it to another port (or another
port on another machine)...

HTH

"Leonardo Rodrigues Magalhães" <coe...@persogo.com.br> wrote in message
news:9fjbu7$2...@pub3.rc.vix.com...

jb

unread,
Jun 6, 2001, 10:48:56 AM6/6/01
to
Dans l'article <9fjavn$2...@pub3.rc.vix.com>, "jb"
Thank you for you're help.
I already do virtual hosting with my
Apache web server.
And i actually do port forwarding on port 80
to an other web server.
So that why i would want to redirect some
domains to my Apache web server that
actually respond on port 81.
So i think after reading you're response
that is impossible to do that with DNS issues
I was thinking that it was may'be possible
with an SRV entry, but it is not already suported
by web browsers i think ?
so, i'm searching for an other solution ...
Thank you :-)


0 new messages