Revert "Remove unnecessary hostnameOffset definition"

This reverts commit 0852e86937b60102f29481f3a231269c2d7bfb55.