configurable hostname resolution