13 Apr
2012
13 Apr
'12
3:46 a.m.
On Fri, Apr 13, 2012 at 2:53 AM, Josh Luthman <josh at imaginenetworksllc.com>wrote:
Can you make the default to testip but specify a host to use DNS?
No, but you can define .default. more than once, and the defaults will change for subsequent hosts until the next .default. (if any). So you could do:
0.0.0.0 .default. # testip dialup
1.1.1.1 server1 # ssh smtp 1.1.1.2 server2 # ssh telnet
0.0.0.0 .default. # dialup 1.1.1.3 server3 # ssh http
0.0.0.0 .default. # testip dialup 1.1.1.4 server4 # ssh rdp 1.1.1.5 server5 # ssh telnet
All hosts except server3 will get the "testip" setting.
Please note that this is just how I think it should work, and I haven't tested it.
J