[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

Assign a subdomain to a specific IP address and port number

Here's what I have:  2 servers listening on RDP.  One is set for port 3389 (default) the other is set for 3390.  I can put the IP addres:port # and get to them fine.

What I want to do is have the following mapped to them:

ts.somename.org = xxx.xxx.xxx.xxx
ts1.somename.org=xxx.xxx.xxx.xxx:3390

Obviously, the ts one is just an additional A record added to DNS, but how do I do the TS1?
0
rpierce1373
Asked:
rpierce1373
1 Solution
 
Chris DentPowerShell DeveloperCommented:

I'm afraid you don't.

DNS will get you to an IP Address, but Ports are not something you can define outside of Service Records, and Service records only work if the client performing the query knows how to use them (RDP will not).

Chris
0
 
gcl_hkCommented:
As above saying, the DNS record is not involed about the port number. But I'm not sure the RDP client program able to specified a port number or not.
If yes, you just set a port forwarding on the firewall, and forward the specified port to different host, it should be work already.
If not, you must have two true IP address, and use NAT to forward different WAN IP to specified host, and no need to modify the default port number of RDP
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now