SRV lookup support (Bugzilla 2217)

Mara Sophie Grosch littlefox at
Fri Feb 19 20:50:33 AEDT 2021


On Feb 18, 2021, at 11:28 AM, Thorsten Glaser <t.glaser at>
> On Thu, 18 Feb 2021, James Bottomley wrote: I can’t see where this
> will end up in anything other than sysadmin tears.

Though the same argument applies to A vs AAAA records and any new
technology, having this as an option that defaults to off seems like a
good idea anyway and would help against this.

On Thu, Feb 18, 2021 at 11:56:48AM -0800, Ron Frederick wrote:
>Keep in mind that SRV records typically point at hostnames, not
>directly at IP addresses. In fact, I’m not even sure they are allowed
>to point at IPs. So, there will still be a hostname lookup which occurs
>after the SRV record lookup, and that could potentially be resolved via
>/etc/hosts depending on the local system’s resolver configuration.
>It’s also worth pointing out that one benefit of SRV records is that
>you can specify port information in them, if you want client to use a
>port other than the default one of 22, without the need to configure
>that on every client.
>In my experience, SRV records are not set at the “host” level. They’re
>typically set at the domain level (e.g.
><>, not <>),
>and they tell you which host(s) under that domain provide the service
>you are looking up, along with the port number to connect to on that
>host. You can also set a series of possible hosts, with weights for
>which ones to prefer.

Being able to specify custom ports (and not having users configure it)
is the reason I'm working on it, also the primary reason for the initial
feature request. I'm thinking of running Git+SSH without having to
dedicate an IP or have it fiddle with my systems configuration.

Also fits something like Github (or any large Git+SSH deployment) more
closely: SSH is a service provided by lots of hosts which may have
different priorities (the current patch only uses the highest-prio host

I hope to get some more comments about SRV records with SSH and not
about if SRV records in general are useful?

-- Mara

More information about the openssh-unix-dev mailing list