The hostname is resolved by the UCSD router to your current IP.
Minor correction: the hostname is resolved to an address by the portal so that the IP address in the encap file is up to date too. I think it does this periodically, perhaps every hour. - Brian