bugzilla-daemon at bugzilla.mindrot.org
2015-Sep-10  05:30 UTC
[Bug 2462] New: Option to try connectiing to multiple DNS names
https://bugzilla.mindrot.org/show_bug.cgi?id=2462
            Bug ID: 2462
           Summary: Option to try connectiing to multiple DNS names
           Product: Portable OpenSSH
           Version: 6.9p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: bugzilla.mindrot.org at pobox.madduck.net
I have a roaming machine, sometimes available as machine.example.org
and other times as machine.example.com. In order to be able to just
"ssh machine", I currently have the following ProxyCommand in place:
  ProxyCommand bash -c "TARGETS=$(bash -c
'TRIES=machine.example.{org,com};
  eval fping -aAC1 -t100 $TRIES; eval fping6 -aAC1 -t100 $TRIES; echo
%h : 9999'
  2>&1 | sed -rne 's, : ([[:digit:]]), @\1,p' | sort -t@ -k2n |
sed -ne
's,
  .*,,p' | tr '\n' ','); nc -vq0 \${TARGETS%%%%,*} %p"
which essentially pings all DNS names and uses the respond times to
pick the
best target.
I wish OpenSSH's client just let me do this implicitly. I am not
talking about
CanonicalDomains ? this would only try various names until one resolved
in
DNS, whereas in my case, all names always resolve ? but about an option
e.g.
Host machine
  TryConnect %h.example.org %h.example.com
and it would then try to connect to both these names in parallel and
once
a connect is successful, it would just kill off the other attempts.
This would
be better than to do this in serial, as that might take too long.
Is this something to consider?
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Dec-06  16:08 UTC
[Bug 2462] Option to try connectiing to multiple DNS names
https://bugzilla.mindrot.org/show_bug.cgi?id=2462
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
                 CC|                            |djm at mindrot.org
             Status|NEW                         |RESOLVED
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Sorry, this is exactly the sort of thing that should be handled outside
ssh, e.g. via a shell script or dedicated ProxyCommand
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.