I need the possibility to get a path of a file which contains the full qualified domain name (FQDN).
For example, with Windows power shell I can get it by:
[System.Net.Dns]::GetHostByName("computer01")
"computer01" would be the computer name of the file server where my file is located.
Explanation:
The issue with the current "UNC path" or "internet path" is the following:
Scenario 1:
File is on a server:
subdomain1.domain.com
My computer is in:
subdomain2.domain.com
When I use e.g. "UNC path" of the file I get:
\server.subdomain1.domain.com\directory\filename
--> everything is fine, everyone can open the file from the UNC-link.
Scenario 2 (this is the issue now):
File is on a server:
subdomain1.domain.com
My computer is also in:
subdomain1.domain.com
A colleagues computer is in a different domain:
subdomain2.domain.com
When I use e.g. "UNC path" of the file I get:
\server\directory\filename
because my computer and the server with the file are within the same domain and subdomain, so my computer "thinks" there is no necessity to output the subdomain of the server.
As a result, my colleague with his computer in subdomain2 is not able to open the file (within subdomain1) from the UNC-link I send him, because his computer (within subdomain2) "cannot find the path specified".