commandline hostname resolver