Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2004
    Posts
    6

    Unanswered: UNC to Fully Qualified Domain Name

    Does anybody know how to translate a UNC filename to a Fully Qualified Domain Name (FQDN) format, or alternatively retrieve a filename in a FQDN format?

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    If you check Microsoft's Naming Conventions page, you'll see the definition for both... I'm not sure that it is possible to convert between them for all cases.

    -PatP

  3. #3
    Join Date
    Feb 2004
    Posts
    6
    Pat,

    Thanks for that. What I am trying to do is to get a FQDN from the Office file dialogue so that I can store the full FQDN of the file selected

    Thanks

    Brian

  4. #4
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    I'm confused. UNC names and FQDN names aren't the same thing, and they aren't either sub or super sets of a common thing. Your question makes as much sense to me as "How do I turn a lemon into a brick?" because of the disconnect.

    I must be missing something. Can you give me an example?

    -PatP

  5. #5
    Join Date
    Feb 2004
    Posts
    6
    Originally posted by Pat Phelan
    I'm confused. UNC names and FQDN names aren't the same thing, and they aren't either sub or super sets of a common thing. Your question makes as much sense to me as "How do I turn a lemon into a brick?" because of the disconnect.

    I must be missing something. Can you give me an example?

    -PatP
    Pat,

    I have a facility that allows users to store links to documents (e.g. Word Excel, etc). To ensure that these links can be used by users with different logical drive mappings I store the UNC path of the document. We are now upsizing the application to an enterprise application running on multiple domains across a WAN. I have been requested to use FQDNs rather than UNCs to ensure that the document links are unambiguous.

    I take your point that FQDNs and UNCs are the same thing, what I was trying to get was a FQDN based format for a file selected from the Office open file dialogue (I currently retrieve the UNC from the result of this). I see no easy way of doing what I want so I have implemented my own code that resolves the server part of the UNC into a FQDN format using centralised lookup tables. It introduces a bit of ongoing lookup table maintenance overhead, but I can’t see any easier way of doing it

    Thanks for your help

    Brian

  6. #6
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    I think that is as good as you can get. There might be an API call exposed somewhere on a federated domain controller, but I have no clue what it might be or how to use it.

    Sorry I couldn't be more help!

    -PatP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •