Revert "Remove unnecessary hostnameOffset definition"

This reverts commit f2b9be3a44ec58f2825e046c6ef30e5861706a05.