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
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
Possibly Parallel Threads
- ISC's dhcp server, radvd and bind9 now adding samba as an AD DC
- $HOME/.ssh/config and host/hostname resolution how-to?
- ISC's dhcp server, radvd and bind9 now adding samba as an AD DC
- ISC's dhcp server, radvd and bind9 now adding samba as an AD DC
- ISC's dhcp server, radvd and bind9 now adding samba as an AD DC