SRV record API

green

New Member
Please, tell what you can to advise to direct me for digging in for solving the next issue. Let's we have a server (I can fully configure it) behind a router (I can not configure it) with just one opened port with a number I can not specify myself, but the server knows it. My client needs to connect to the server from the outside, but the client doesn't know the port number. How the server can tell its port to the client?

My first suggestion is to use SRV record, because it contains port number. If I could edit it from the server, then it would be the best solution. Is there some API for the such edit? What I can do also? Give all your thoughts, please.
 
Do not believe there is a mechanism to find a single open port on a system without software on either end telling the other system what the port is. We do not have that available and SRV records will not do that.
 
SRV record directs traffic to the port specified in the record. If the server could somehow alter just this port number value, then it is the mentioned solution, because I can predefine all other values and they will stay fixed. Do your service has API for zone file uploading? I need to programmatically edit just the port number in SRV record.
 
Back
Top