Help setting up SRV record

Hi, i’m pretty new to all this so excuse the inevitable obvious mistakes…

I have a server at home, [myip]:8443.
I’d like to be able to just type thing.mydomain.ovh on the browser to access the server, without needing to type in the port as well, so I thought about using an SRV record:

  • I have setup an A record pointing mydomain.ovh to [myip], and now can access the server from mydomain.ovh:8443
  • I have setup an SRV record:

When trying to access thing.mydomain.ovh it just tells me that it’s impossible to reach the site (DNS_PROBE_FINISHED_NXDOMAIN), so my guess is that I made a mistake somewhere. Can you help me? Is there another way to do this?

Hi there,

The error is because there is no A/AAAA/CNAME record at that subdomain.

Furthermore, browsers do not support SRV records for HTTPS URLs.

You can remap ports on Cloudflare’s side using Origin Rules:
Create an origin rule in the dashboard · Cloudflare Rules docs

1 Like

Thank you. So I have to define an A record for thing.mydomain.ovh pointing to [myip], scrap the SRV rule and then set up the origin rule like this, right?


Or is it (http.request.full_uri contains “thing.mydomain.ovh”)?

I’m still curious about SRVs:
In case it was an HTTP URL (and something like port 8080), what would I have to change to make it work?

thanks for your time!

1 Like

Yes, that is correct.

Apologies for any confusion from my last comment, HTTP with a SRV record is not supported either by browsers for this purpose.

See for example

2 Likes

Ah, gotcha. Thanks again!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.