Trump (nor anyone else) doesn't have to be a sitting senator to be "elected" Speaker of the House…
The hosts file is a Windows system file that can override DNS and redirect URLs or IP addresses to different locations.
The hosts file in Windows, Mac, or Linux maps hostnames to IP addresses. For example, an intranet, like a corporate office that has servers for users to access, or it could be domain names for servers on the internet.
Editing your hosts file can be useful if you are running tests on your network. By mapping an IP address to a server name (or domain name), you can skip the process where a web browser uses a Domain Name Server(DNS) lookup to translate the domain name to the IP address.