Path Variable For Installing Dig Instead OF Using NSLookup

AllOnTheBus

New member
Guru
Local time
7:07 AM
Messages
348
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

OS
Windows 7 Home Premium 64 Bit OS
Can anyone help me out here? Please.
 

My Computer

OS
Windows 7 Home Premium 64 Bit OS
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:

My Computer

Computer Manufacturer/Model Number
Custom self build - Desktop
OS
MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
CPU
AMD Phenom II X6: Black Ed 1090T - AM3 / 3.2GHz / 8MB
Motherboard
Biostar TA790XE3
Memory
2 dual ch sets OCZ DDR3 PC3-10666 Platinum 1333MHz 8GB total
Graphics Card(s)
Onboard
Sound Card
Onboard 5.1 channel HD
Monitor(s) Displays
SyncMaster "Legal-sized" LCD (rotatable)
Screen Resolution
unknown (8.5"x15")? pixels are not known
Hard Drives
HDD1: WD RE3 Enterprize [p/n: WD500ABYS-NDW]
________SATA-II (3Gb/s) 500GB/7200rpm/16MB

HDD2: Deskstar 7K1000.C [p/n: HDS721010CLA332]
________SATA-II (3Gb/s) 1TB/7200rpm/32MB
PSU
Antec 900W mATX 20+4 w/6-8SATA;2MLX;4x6(+2)PCIe[p/n HCG-900]
Case
Mid 10-bay tower - free space design interior & well vented
Cooling
CPU HS cooler, 14.5" Case-sysfan1, dual sysfan2, exhaust
Keyboard
Blue Star Ergonomic - ps/2
Mouse
LED coorded w/v. roller wheel - ps/2
Internet Speed
GbLAN 10/100/1000 & WLAN - on T1 (Peer Network)
Other Info
Harmon-Karden speakers (L,R @ sub)

APC (Lead/Acid Batt backup UPC+Surge protector+etc)

Sony DVD SATA(300) - RW DVD/CD SATA-II(300)
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: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html

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:
http://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:

My Computer

OS
Windows 7 Home Premium 64 Bit OS
Back
Top