[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4308
  • Last Modified:

Creating an alias like in the hosts file without a number on a local windows PC

I am looking to do what you would think to be a simple thing.
I want to be able to put a definition on a local PC like in a hosts file.
server1.theserver.com      server4.anotheralias.com
A hosts file can do      johnspc.theserver.com         server4.anotheralias.com
When pinging either       johnspc.theserver.com         server4.anotheralias.com it will be pointed to
What I want to do is do it by alias partly using DNS, saying as in the example above;
server1.theserver.com      server4.anotheralias.com
so when I ping server1.theserver.com DNS will return the address for  server4.anotheralias.com
Suggestions without using DNS it must be a local solution?
Thanks Peter
  • 2
1 Solution
I know of no way of creating the local equivalent of a DNS CNAME.  I believe you're out of luck on this one ... short of a completely custom solution.
PeterSingerAuthor Commented:
The correct solution to this issue is to us a free DNS service on your PC like http://www.ntcanuck.com/downloads.htm

It will allow you to add a cname on the local PC and forward any other request to the DNS in your DHCP settings.

It has a very low overhead and is simple to use.
... so why did you ask here if you've got a solution?

PS - I'd agree -- very inventive, nice job ... sadly, it's utterly unsupportable in the world I live/work in.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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