daemon: look up client-supplied hostname lazily