Patterns in HostName ?

Stephen Harris lists at spuddy.org
Tue Jan 24 02:46:55 EST 2012


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" ?

I could probably kludge it with proxycommand and "nc" but that really
feels nasty :-)

-- 

rgds
Stephen


More information about the openssh-unix-dev mailing list