Path Variable For Installing Dig Instead OF Using NSLookup


  1. Posts : 388
    Windows 7 Home Premium 64 Bit OS
       #1

    Path Variable For Installing Dig Instead OF Using NSLookup


    Hey folks

    Just wondering if anyone can tell me if it is OK to have (create) a
    second PATH environment variable for Dig.

    I currently have 1 PATH variable already being c:\Program Files (x86)\Nmap.

    In the instructions for installing Dig found here dig, a DNS query tool for Windows and replacement for nslookup it says that if the PATH variable exists to double click it for editing and to append dig to the PATH variable.

    To put my question in the simplest terms:
    Can I create a new PATH variable for Dig without screwing with the Nmap PATH variable already in place.
      My Computer


  2. Posts : 388
    Windows 7 Home Premium 64 Bit OS
    Thread Starter
       #2

    Can anyone help me out here? Please.
      My Computer


  3. Posts : 1,777
    MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
       #3

    Hey AllOnTheBus,

    I'm not sure about Dig specifically, but to answer your question about the Path variable Start > control panel > System > Advanced Option > [Environmental Variables] > Path will be a copy of your full Path variable. just amend it carefully with a ";" and then the full path you need to be added after the last entry. (Use [EDIT] button to edit it, then [OK]...[OK] to close the windows.)

    Mike :)
    Last edited by rubyrubyroo; 17 Dec 2011 at 22:51. Reason: Correction
      My Computer


  4. Posts : 388
    Windows 7 Home Premium 64 Bit OS
    Thread Starter
       #4

    Thanks for the reply Mike

    I think I should have taken my own advice for once and gone to see
    Dr. Google! I wasn't understanding the meaning of the word append
    (meaning add to/ include) and therefore was unsure whether I would
    be deleting the Nmap entry or whether I needed to create another
    PATH variable from scratch.

    Turns out that by adding ";" (without quotes) as you mentioned to the
    existing PATH variable along with the Dig PATH did the trick.

    Just in case anyone else comes to view this post looking for information,
    I'll explain in newby terms (which I am a bit) exactly the procedure I took.

    Windows Start Button (orb)
    Type in search: environment variables
    Select "Edit environment variables for your account"
    In the top section under user variables select the PATH variable (highlight it) and click edit
    Add ;C:\dig to the existing PATH variable
    Click OK and OK again

    In my case this gave me C:\Program Files (x86)\Nmap;C:\dig where dig has been placed directly into the root directory in this case being the C: drive.

    Dig is now able to be run if I use "Open command window here as administrator"
    ie: Go to C:\dig and right click and choose "Open command window...................."

    I found the registry entry download for the installation and removal of this
    menu addin at a thread by Brink (gee that guy knows heaps- thx again!) which
    can be found here: Open Command Window Here as Administrator

    Just as another note, the whois utility found in the sysinternals suite which works at
    a lower level to dig has been noted to be a good tool for this purpose also. If dig is downloaded
    from the page I have linked out to above, included is the whois tool which can be run through dig
    and the "Run command window here.........." method.
    I just found this to be a bit easier than fiddling around which seemed to be the case
    as witnessed in this thread:
    https://www.sevenforums.com/general-discussion/61258-how-run-command-line-utility-2.html
    (no offense to all involved in this thread but I got 2 tools for the price of - well - nothing which
    can both be run in the same place after the PATH appending and without the need to go
    moving exe's about and whatnot - besides that I must be missing something cause I tried
    that and it did'nt work for me).

    Anyways, if you need step by step instructions the same as I do - here they are.
    Hope this may help someone in future.

    Cheers :)
    Last edited by AllOnTheBus; 15 Dec 2011 at 19:15.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:51.
Find Us