Hobbit doing DNS lookup instead of using bb-hosts address?

Hobbit User hobbit at epperson.homelinux.net
Tue May 22 20:18:17 CEST 2007


I often use ssh tunnels to avoid punching multiple firewall holes.  A
technique I use when binding the same port for multiple targets is to use
an IP above 1 on the localhost network, e.g.
ssh -L 127.0.0.218:25:192.168.22.218:25 -i hobbitkey hobbit at 192.168.22.218
ssh -L 127.0.0.123:25:192.168.22.123:25 -i hobbitkey hobbit at 192.168.22.123

So I'd expect to be able to use a bb-hosts entry like:
127.0.0.218 mail.subnet.net # smtp
and use the tunnel for the test.  But it seems that if mail.subnet.net can
be resolved to an IP address via DNS, Hobbit will use the registered
address instead of the one in its own bb-hosts file.  So the test fails,
which is exactly the point of having the tunnel.  So to use the tunnel, I
have to use a bogus name.

Is this the correct behavior?  Am I missing something?  I understand that
the scenario I give will result in a bogus conn test if the 127.0.0.218
address is used, and what to do about it if it matters.



More information about the Xymon mailing list