@Spunnring said:
I just discovered the D***** S****** M******** portal after some gave me a nudge to check my h****-file, and how tf does this work? I thought this file makes local n*** r********* more convenient, but how does the box know which name I gave it?
Look how a HTTP request works.
Webservers can host many, many domain names on a single server/ip and they rely on the “host” header of the HTTP request to determine what content to return.
This might help: HTTP/1.1: Request