Home » Questions » Computers [ Ask a new question ]

How to redirect a domain to another one on my machine only?

How to redirect a domain to another one on my machine only?

I want all requests from my machine to

Asked by: Guest | Views: 98
Total answers/comments: 1
Guest [Entry]

"The hosts file expects an IP address for each hostname listed.

You may need to look up the IP address of example.com.edgesuite.net and use it in the hosts file.

First perform the DNS lookup:

C:\>nslookup example.com.edgesuite.net
Server: google-public-dns-a.google.com
Address: 8.8.8.8

Non-authoritative answer:
Name: a1081.b.akamai.net
Addresses: 24.143.196.115, 24.143.196.123
Aliases: example.com.edgesuite.net

Then add a line line in your hosts file such as:

24.143.196.115 example.com

or

24.143.196.123 example.com

But keep in mind that if example.com.edgesuite.net ever changes its IP address, then you will have to make a corresponding change in your hosts file."