0

I am setting up in a test environment and need to save some paths in a database but dont want to edit the paths when we go to production. My idea being that I could create a share on both servers and use a generic name like LocalHost instead of TestServer for the paths.

Example:
\\LocalHost\Docs

I have used a mapped drive temporarily but was curious if there is another magic word like localhost that works with share paths?

bugtussle
  • 205
  • 2
  • 8

2 Answers2

2

We use CNAMES in DNS as a method to create a layer between real server names and an easy to remember name. For example we name servers based on a combination of their role, site, and number, but we use CNAMES so users are able to remember them easily and they never have to remember another name when we migrate to new servers.

Our file server is called ISSFL101, but in DNS we just use "file". So, users are just able to type \file\documents and they are able to access what they need. When we move to a new server we just update the CNAME record to point to the new servers IP address and we are able to cutover in no time and users never know the difference.

Other than that I am not aware of any easy shortcuts.

IT Team
  • 113
  • 1
  • 5
1

A coworker answered this one: You can use \\127.0.0.1\docs instead of a hard coded name.

bugtussle
  • 205
  • 2
  • 8