DNS Question

Hello. Sorry if this is not the right section, but it seemed appropriate. I had someone complain that a SRV setup was not working for a Minecraft server. When they read me the config, it was _minecraft._tcp.mc.domain.com. 3600 IN SRV 0 5 30918 mc.domain.com. Can a SRV's target be the same subdomain as the SRV itself, or does the A record it points to need to be different?

EDIT: I don't see how to delete a post, but I found my answer. I stopped by the book store and they had a copy of "DNS and BIND". The section on SRV shows that using the same subdomain for both is not a problem so I guess that's not it. Thanks anyway!
 

spiralscratch

Ars Praefectus
3,106
Subscriptor
I think the problem is that the FQDN of the server is given as the name (the portion of the record directly after the underscored service and protocol names). It should be just the domain name:
Code:
_minecraft._tcp.domain.com. 3600 IN SRV 0 5 30918 mc.domain.com.

Or, for short:
Code:
_minecraft._tcp 3600 IN SRV 0 5 30918 mc.domain.com.

Make sure that the FQDN given as the target points to a A and/or AAAA record, not a CNAME. And also verify that any FQDNs are trailed by a period.

RFC 2782