Dealing with roaming machines

Nico Kadel-Garcia nkadel at
Tue Dec 23 17:50:17 EST 2014

On Mon, Dec 22, 2014 at 3:41 PM, martin f krafft <madduck at> wrote:
> also sprach Nico Kadel-Garcia <nkadel at> [2014-12-22 14:43 +0100]:
>> The problem, I think, isn't that you have an entry in all three. It's
>> that you have a *shortened* hostname that is identical in all 3 DNS
>> domains. If your DNS admins have gracefully set the local environments
>> to each be on their own subdomain, and that subdomain is *first* in
>> DHCP configured DNS, you should be golden.
> No, because the problem is that the short name always resolves to
> the IP the machine would have in the local network, and hence this
> is the IP that OpenSSH tries.
> However, if the machine is not in the local network, then I'd like
> OpenSSH to ask for the same hostname in the next CanonicalDomain and
> try it there. Does this make sense?

If it's not "in the local network", then it shouldn't get the
subdomain of the internal network, and you've got a DNS "views" or
DHCP configuration issue.

I'm now assuming that you now have fully qualified hostnames that
differ in each environment?

More information about the openssh-unix-dev mailing list