Author Topic: SRV records not working  (Read 4190 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SRV records not working
« on: April 04, 2021, 03:51:12 AM »
Hello, ive got everything to seem to work fine for right now, but when i try to set a srv record for a clients minecraft server it doesnt show up in dns lookup anywhere no matter what i do. can anyone show me the correct way to set this up.

Code: [Select]
minecraft 60 IN A 51.195.188.144
_minecraft._tcp.play.  IN SRV 0 5 80 minecraft.elementia.tk.


dns result (using the servers own dns via keycdn)
Code: [Select]
; <<>> DiG 9.16.1-Ubuntu <<>> +additional play.elementia.tk @135.148.88.186
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19590
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 7fe1ae1cbb828b186eac3cf860693846a3e139c68e1f02ef (good)
;; QUESTION SECTION:
;play.elementia.tk. IN A

;; AUTHORITY SECTION:
elementia.tk. 86400 IN SOA ns1.pargonia.club. postmaster.elementia.tk. 2021040421 3600 7200 1209600 86400

;; Query time: 100 msec
;; SERVER: 135.148.88.186#53(135.148.88.186)
;; WHEN: Sun Apr 04 03:53:42 UTC 2021
;; MSG SIZE  rcvd: 138

so its pretty much just registering out as nx domain
« Last Edit: April 04, 2021, 03:54:32 AM by PargonianKnight »

Offline
****
Re: SRV records not working
« Reply #1 on: April 04, 2021, 07:29:27 AM »
https://www.cloudflare.com/learning/dns/dns-records/dns-srv-record/

1)  You are looking up a "A" record via DIG.  to look up SRV records, you use "dig SRV (domain)"
2)  play.elementia.tk is a NX domain, becasue it has no A record
3)  because you ended play with a period, Bind does not attack the rest of the domain name.  By RFC, any domain ending with a . is considered absolute.  So I'm honestly suprised your not getting an Error of an out of zone domain name.  The following line should work correctly.

_minecraft._tcp.play  IN SRV 0 5 80 minecraft.elementia.tk.
or
_minecraft._tcp.play.elementia.tk.  IN SRV 0 5 80 minecraft.elementia.tk.

Finally, the best way to check a SRV recrod is using the "Host command"

host -t SRV _minecraft._tcp.play.elementia.tk
« Last Edit: April 04, 2021, 07:53:55 AM by rcschaff »
Google Hangouts:  rcschaff82@gmail.com