Or just use no hostname/ip-addres in any of the links, just relative ones. The webbrowser is responsible for sending the request to the same ip-address the document came from.
The host-field in the request header should/could be used for virtual hosts. This way you could set accesrestrictions based on the accessed IP-address...
_________________________
Frank van Gestel