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 srv.example.com on 127.0.0.11:53: no such host”; Reconnecting to {srv.example.com }

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.