Most web applications do not know what domain they are being hosted on. Domain names are registered in the Domain Name System (DNS), which tells user agents like browers to route internet traffic for a domain to a number of IP addresses.