Fix private class methods

See http://rubyquicktips.com/post/17698867568/making-class-methods-private for
details on why it is necessary.
Fix broken tests when address lookup became default