DNS SRV records for a subdomain
xmpp.example.com. IN A 1.2.3.4
_xmpp-server._tcp.jabber.example.com. IN SRV 10 5 5269 xmpp.example.com
What is the best way to do this? The documentation says to use A records to define subdomains.
2 Replies
@deuxpi:
The DNS Manager form for editing SRV records will choose the domain name automatically. However, I want to add SRV records for a subdomain. For example, I want:
xmpp.example.com. IN A 1.2.3.4 _xmpp-server._tcp.jabber.example.com. IN SRV 10 5 5269 xmpp.example.com
What is the best way to do this? The documentation says to use A records to define subdomains.
I suppose, based on how the UI restricts what you can enter, that you would have to create a separate zone for jabber.example.com where you can add an SRV record for _xmpp-server, protocol tcp, etc, etc.
13 years later and it seems like this is still the case? Any SRV record i add automatically sets the name itself to the TLD. I don't want to have to create separate zones for all of the different subdomains i want to have SRV records for, especially when each new zone would literally just be a subdomain that points to my main NGINX IP address.
Is there really no other solution to this?