hostnames supported in lan mode

This patch adds the ability to use hostnames when in LAN mode.