Trying to pass agent SRV dns record

Very new to using SRV records but I have a few of them up and I’m trying to pass one to the agent as the DRONE_SERVER command and I keep getting

grpc: addrConn.resetTransport failed to create client transport: connection error: desc = “transport: Error while dialing dial tcp: lookup on no such host”; Reconnecting to { }

I am a total noob with SRV so maybe I’m not using it correctly? Dig resolves the SOA record locally so I don’t think thats the issue.