Link to home
Start Free TrialLog in
Avatar of dealvis
dealvisFlag for United States of America

asked on

Can a DNS record resolve to a port number along with an IP Address?

Can a DNS record resolve to a port number along with an IP Address?

Our web site admin put a hyperlink on our public web site that exposes a departmental web application server's IP Address & Port number (http://209.43.17.59:81) in the browser's address bar during redirection.
I did not want this to be visible information.

Notice the departmental web server is listening on Port 81, not Port 80.

My thought is to add a Host record to DNS for that department's web server & provide the FQDN to the Web Admin to associate with the hyperlink instead of the whole IP address & Port number that is there now.  What I don't know is if the DNS record can somehow supply the HTTP Port Number 81 info along with the IP address?

I have 2 goals here:
Keep the web application running on a port other than 80
Build a hyperlink to the application on the Web server that does not expose the actual machine address & port number.

Any help greatly appreciated - Thx.
ASKER CERTIFIED SOLUTION
Avatar of digimonkey
digimonkey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arty K
I agree with digimonkey, you can't 'hide' non-standard port numbers from URI with DNS.

Avatar of dealvis

ASKER

OK, I will change the department's Web Server to listen on Port 80 and then add a HOST (A) record to the DNS zone the computer is a member of.  That way we can follow your advice to at lest conceal the public IP Address in the web browser.

I didn't think I could do both - Thanks for responding Gentlemen.