SRV Record Not Working for GoDaddy HTTPS on Separate Port – Fix

digdomain-name-systemgodaddyhttpssrv-record

I'm having trouble setting up an office with one public IP and multiple web services running on separate ports. One of the services is a media server and I'm trying to add an SRV record to godaddy in order to avoid confusing the staff with ports. Additionally I've been clearing my DNS cache and trying more than 1/2 hour at a time just to confirm the cache is cleared from my DNS prefs (I've also tried other DNS servers not just manually having my system lookup the domain). The fields are filled in like so:

  • Service: _https
  • Protocol: _tcp
  • Name: @
    (I've also tried domain.ca here)
  • Target: media
    (I've also tried media.domain.ca here)
  • Priority: 1
  • Weight: 1
  • Port: 12322
  • TTL: 1/2 hour (Though this hardly matters)

Dig output looks like so: (Output modified to remove actual domain name)

; <<>> DiG 9.10.6 <<>> media.domain.ca
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 7098
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;media.domain.ca.       IN  A

;; AUTHORITY SECTION:
domain.ca.  590 IN  SOA ns45.domaincontrol.com. dns.jomax.net. 2019112603 28800 7200 604800 600

;; Query time: 28 msec
;; SERVER: 2001:568:ff09:10a::55#53(2001:568:ff09:10a::55)
;; WHEN: Sat Nov 30 11:18:01 PST 2019
;; MSG SIZE  rcvd: 122

Someone please smack me, this can't be so hard. Yes the port is forwarded in their router (works if I enter https://media.domain.ca:12322) but I can't dig or reach media.domain.ca or https://media.domain.ca as it doesn't appear to be appending the right port. Thanks everyone,

Best Answer

1) Web browsers don't use service records for HTTP (only delegated kerberos afaik)

2) your dig command isn't shown, but the correct lookup would be dig SRV _https._tcp.media.domain.ca or dig SRV _https._tcp.domain.ca

3) you should be using a reverse proxy with multiple domains (virtual hosts), which is explained many times on SO, here's one example tutorial https://geekflare.com/multiple-domains-on-one-server-with-apache-nginx/

TLDR: one public IP and multiple web services running on separate ports can only be accomplished by specifying the port in the browser/uri

Related Topic