Patterns in HostName ?
Ángel González
keisial at gmail.com
Tue Jan 24 04:00:43 EST 2012
On 23/01/12 16:46, Stephen Harris wrote:
> I have a Unix host that's DHCPd, so resolv.conf is rewritten. Because
> of company policies, it's not allowed to change the client dhcp config
> to override the search path.
>
> I also need to login to a large number of machines in a specific
> subdomain; eg in a lab environment.
>
> Is it possible to do something like
> Host *.lab
> Hostname %h.sub.domain.example.com
>
> so if I "ssh host1.lab" then it'll go to "host1.lab.sub.domain.example.com" ?
It should work fine
More information about the openssh-unix-dev
mailing list