Go to Post Which puts us precisely where we were six months ago, but slightly more entertained. - cadandcookies [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 22-10-2004, 14:13
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Questions about DNS, URL Forwarding, and Cloaking

Quote:
Originally Posted by sanddrag
Here's what I need to do. I need to forward a URL to an IP with a port number for example 34.328.392.94:47 I cannot use just a plain ol forwarding service, because that would put display the IP in the address bar, not the URL. If I use cloaking, the URL is displayed but the page is a 100% frame (not compatible with Google and just plain horrible). So, I need some real DNS. No problem, except it seems like DNS will only forward a URL to an IP without a port specified for example 34.328.392.94 (default to port 80). I could have DNS resolve the name, then forwarding send it to the port, but then the port would show up after the address in the borwser address bar. All I want is the URL (not the IP or port) with no frames. Also if you click a link from the main page, it's address needs to show up in the browser bar just like normal (www.somesite.com/page.html)

Is what I am in need of even possible? If not, what is the best possible solution?
What you're looking to do isn't directly possible (though you can simulate it - more on that in a minute). The problem is that DNS's only purpose is to resovle a name (www.chiefdelphi.com) into an IP address (216.7.168.120). DNS knows nothing about port numbers and doesn't care. The key here is that the IP address tells you how to transport packets to somewhere on the Internet at the Network Layer, which doesn't know about ports, only IP addresses. On top of the Network Layer sits the Transport Layer (which is where TCP and UDP are), and the Transport Layer protocols are responsible for knowing about port numbers. Unfortunately DNS does not have knowledge of what Transport Layer service you're looking for, only the IP address of the host which you will find that service. This page here has a decent description of the layering approach used on the Internet.

The only way I can think of to accomplish what you want is this (which unfortunately I don't think will help you any):
You could have a machine on the Internet that answered requests on port 80 and in turn opens up a new socket connection to your server on a different port. This machine ends up just acting like a tunnel or proxy. You'd point the DNS entry for the domain name which you want your website to appear on to the IP address of this proxy. So, what happens when someone accesses a webpage is that they do a DNS lookup on your website name and get the IP address of the proxy. They connect to the proxy on port 80, and the proxy then immediately opens up a connection to your machine at home on another port, say 1234. Now, any traffic coming from the website visitor goes to the proxy which then relays it to your home machine, and any traffic from your home machine gets relayed back to the website user. Like I said this probably doesn't help you because it would require access to a machine on the Internet with an open port 80 where you could run a program like this.

One other idea that may accomplish what you're after: if your ISP does not block port 443, then you can set your webserver up on that port and use a redirection service to point to https://<your ip address> The port will not appear in the URL because the use of "https" instead of "http" tells the browser to connect to the Secure HTTP port (443). You would need a secure web server to answer the requests, though. I don't really think this is that great of a solution but I thought I'd throw it out anyway.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi