fix typo of transposition
only resolve hostname if requested