Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • Last Modified:

Redirect address to address in XP

Hello, I would need to redirect address to address in XP:

address.domain.tdl to address2.domain2.tdl

I tried hosts, but it doesn't work.
0
mrmut
Asked:
mrmut
1 Solution
 
Bruno PACIIT ConsultantCommented:
Hi,

The host file only permits you to associate an IP address to a DNS name, not a name to a name.
Anyway, if you know the IP address associated to the name "address2.domain2.tdl" you can then use your host file. Let's take an example:

Let's suppose address2.domain2.tdl is resolved as 10.1.2.3.
In your host file you can add the following line:
10.1.2.3 address.domain.tdl


The host file is useless if it's about going on Internet and you have a web proxy server to reach the Web... In this case, the IP resolution is made by the proxy server, not by your computer, and filling the host file won't help !

Have a good day.
0
 
mrmutAuthor Commented:
Thanks, the server address is dynamic, therefore I can't go with the IP.

Is there a way to do this other way round?
0
 
footechCommented:
Do you have a DNS server?  If so you can create a CNAME record for "address.domain.tdl" that points to "address2.domain2.tdl".
If you have a web server at "address.domain.tdl" you can configure it to redirect requests.
Otherwise there's really no other options that I know of.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now