[jadmin] Wildcard and SRV records (too much subdomains)

Matthias Wimmer m at tthias.eu
Mon Mar 5 17:36:49 CST 2007


Hi Manuel!

Manuel Mely schrieb:
> I have an ejabberd server, that will be serving for about 25 vhosts very
> soon, but i was configuring my dns server and i noted that for 2 or 3
> domains SRV records for _xmpp-server _xmpp-client _jabber will be ok,
> but i will have 25 vhosts and maybe more, and i won't like to have 3
> records per vhost :)

Well it's a matter of your taste what you do like, but technically I see
no problem having 25 entries in your zone file.

My taste: As long as you have a known and finite set of domains (doesn't
matter how many, that's just a matter of using the right tool to manage
your zones), you should not use wildcards anyway. Wildcards make unused
domains visible to the DNS. Causing other systems try to deliver
messages (not only XMPP ones) to your system. Wildcards should only be
used if set set of domains are either unknown or infinite. (E.g. if you
are operating a gateway to a non-internet network, e.g. FidoNet.)

Back on topic:

> I tried this:
> 
> _jabber._tcp.*.home.cu. IN SRV 5 0 5269 xanthe.home.cu.
> _xmpp-server._tcp.*.home.cu. IN SRV 5 0 5269 xanthe.home.cu.
> _xmpp-client._tcp.*.home.cu. IN SRV 5 0 5222 xanthe.home.cu.

Is xanthe.home.cu the same host as the host addressed by your wildcard
record? In that case (as already said by others) you do not need the SRV
records at all. They are just needed to redirect traffic to a host
different than the one that gets resolved by the A record or to redirect
the traffic to a non-standard TCP port.


Matthias

-- 
Matthias Wimmer      Fon +49-700 77 00 77 70
Züricher Str. 243    Fax +49-89 95 89 91 56
81476 München        http://ma.tthias.eu/



More information about the JAdmin mailing list