I bought a hosted service which, mainly for DDoS mitigation reasons, often rotates its IPs. So myservice.remoteserver.xxx:666
sometimes goes either to 111.111.111.111:666
or 222.222.222.222:666
I actually got a CNAME
record on my own server: sub.mydomain.yyy
-> myservice.remoteserver.xxx
. This is so that anybody is able to access the service at sub.mydomain.yyy:666
.
I would like users to be able to reach the service (SRV compliant) omitting to specify the port (666
). How may I accomplish this?
I wrote a SRV
entry sub1.mydomain.yyy
-> 1 1 666 myservice.remoteserver.xxx
, but it doesn't work!
As in MX records, the target in SRV records must point to hostname with an address record (A or AAAA record). Pointing to a hostname with a CNAME record is not a valid configuration.
So, should I get an A
record in my own DNS?
sub.mydomain.yyy
-> 111.111.111.111
Or it would be enough to point to my service provider A
record (for example: idontknow.otherremoteserver.xxx
-> 111.111.111.111
)?
- To clarify this last question: Since I am sure the address they gave me
myservice.remoteserver.xxx
is aCNAME
for something else, I maydig
and find out the finalA
recordidontknow.otherremoteserver.xxx
->111.111.111.111