<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">On 14 May 2024, at 15:20, DEMBLANS Mathieu wrote:</p>
</div><div class="plaintext" style="white-space: normal;"><blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">A part of the subdomains are managed by us, others subdomains by an other entity.
<br>
So we can't configure a generic target for all subdomains as each entity has its own target for SRV entries.</p>
<p dir="auto">-----Message d'origine-----</p>
<p dir="auto">De : bind-users bind-users-bounces@lists.isc.org De la part de Matus UHLAR - fantoms
<br>
Envoyé : mardi 14 mai 2024 15:58
<br>
À : bind-users@lists.isc.org
<br>
Objet : Re: SRV on multiple subdomains
<br>
On 14.05.24 13:08, DEMBLANS Mathieu wrote:</p>
<p dir="auto">I have a question about configuration simplification for SRV configuration (maybe it can be applyed for other entries).</p>
<p dir="auto">We manage multiple subdomain of a main one (server1.example.com, server2.example.com,...).
<br>
For A and MX entries, we use a general domain definitions with wildcard but is there a way to do so for SRV without having to define all subdomains (we have several dizains of it) ?</p>
<p dir="auto">We have to define some SRV entries with the same target like :
<br>
_imap._tcp.server1.example.com IN SRV main.exemple.com
<br>
_imap._tcp.server2.example.com IN SRV main.exemple.com</p>
</blockquote></div>
<div class="markdown" style="white-space: normal;">
<p dir="auto">Since a record is needed for each host, I think I would use something like this:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">imap._tcp.server1.example.com. IN SRV main.example.com.
imap._tcp.server2.example.com. IN CNAME imap._tcp.server1.example.com.
...
imap._tcp.servern.example.com. IN CNAME imap._tcp.server1.example.com.
</code></pre>
<p dir="auto">The advantage here is that, if ever the target of the SRV record had to<br>
be changed, only one record would have to be updated.</p>
<p dir="auto">/Niall</p>

</div>
</div>
</body>

</html>