[dns-operations] wrapsrv -- DNS SRV record command line wrapper

Stephane Bortzmeyer bortzmeyer at nic.fr
Thu Jul 2 20:44:13 UTC 2009


On Thu, Jul 02, 2009 at 03:01:30PM -0400,
 Robert Edmonds <edmonds at isc.org> wrote 
 a message of 36 lines which said:

> how is that any better 

Order. srvsearch follows the SRV algorithm and always return
xmpp-server.l.google.com first (since it has a better priority). host
does not (it just uses the order of the records sent by the name
server, round-robin with BIND).

So you can use it that way:

% my-xmpp-client -h $(echo _jabber._tcp.google.com | srvsearch | head -1)

which is not possible with host.




More information about the dns-operations mailing list