Running the Dig utility from Windows command line

How to install and use the dig utility on a Windows system

The dig (domain information groper) utility is something I use on my Linux hosts so often that I miss it when I move back to a Windows host. Here’s how to install and use the dig utility on a Windows system:

  1. Download the BIND package from the Internet Systems Consortium web site for your Windows
  2. Extract to the directory that you’d like to run the program from, probably C:UsersMyUsername
  3. Run the dig command

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:Userstechpain>dig mx ; <<>> DiG 9.9.5-W1 <<>> mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
Dan Esparza’s blog has a great post on different ways to use the dig utility and understanding the output.

Also, check out how to run the WhoIs utility from Windows command line.

Windows dig command options


WhoIs lookup from Windows command line

A WhoIs lookup will show the registration record for a domain name, and being able to run this right from the command line is really convenient.

This utility will run on Windows XP and higher (client) and Windows Server 2003 and higher (server).

Download the utility from the Windows Sysinternals site and copy it to the path that you want to use (probably C:\Users\MyUsername). After that you can run the WhoIs utility like this:

Windows WhoIs - Command line example
An example whois lookup from the Windows command line


WhoIS command and output

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.


Whois v1.11 - Domain information lookup utility
Sysinternals -
Copyright (C) 2005-2012 Mark Russinovich

Connecting to
Connecting to

Registrar WHOIS Server:
Registrar URL:
Updated Date: 2013-10-22T03:40:00-06:00
Creation Date: 2010-08-04T00:59:03-06:00
Registrar Registration Expiration Date: 2017-08-04T00:59:03-06:00
Registrar:, Inc.
Registrar IANA ID: 625
Registrar Abuse Contact Email:
Registrar Abuse Contact Phone: +1.17202492374
Domain Status: clientTransferProhibited
Registrant Name: Whois Agent
Registrant Organization: Whois Privacy Protection Service, Inc.
Registrant Street: PO Box 639
Registrant City: Kirkland
Registrant State/Province: WA
Registrant Postal Code: 98083
Registrant Country: US
Registrant Phone: +1.4252740657
Registrant Fax: +1.4259744730
Registrant Email:
Admin Name: Whois Agent
Admin Organization: Whois Privacy Protection Service, Inc.
Admin Street: PO Box 639
Admin City: Kirkland
Admin State/Province: WA
Admin Postal Code: 98083
Admin Country: US
Admin Phone: +1.4252740657
Admin Fax: +1.4259744730
Admin Email:
Tech Name: Whois Agent
Tech Organization: Whois Privacy Protection Service, Inc.
Tech Street: PO Box 639
Tech City: Kirkland
Tech State/Province: WA
Tech Postal Code: 98083
Tech Country: US
Tech Phone: +1.4252740657
Tech Fax: +1.4259744730
Tech Email:
Name Server:
Name Server:
DNSSEC: NotApplicable
URL of the ICANN WHOIS Data Problem Reporting System:

>>> Last update of WHOIS database: 2014-02-15T13:50:43-07:00 <<< The Data in the, Inc. WHOIS database is provided by, Inc. for information purposes, and to assist persons in obtaining information about or re lated to a domain name registration record., Inc. does not guarantee i ts accuracy. By submitting a WHOIS query, you agree that you will use this Data only for lawful purposes and that, under no circumstances will you use this Dat a to: (1) allow, enable, or otherwise support the transmission of mass unsolici ted, commercial advertising or solicitations via e-mail (spam); or (2) enable hi gh volume, automated, electronic processes that apply to, Inc. (or its systems)., Inc. reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy.

Also, check out how to run the dig utility from Windows command line.


Make Ubuntu 9 look like Windows 7

This just feels plain wrong, but it is what it took to run Ubuntu on some temporary training machines.

Make Ubuntu 9.10 look like Windows 7

There is a post at on how to make Ubuntu 9.10 look like Windows 7. Here are the steps that they provide:

Type or copy and paste all of the following in a terminal:

cd $HOME


chmod 0755 $HOME/

WARNING: This will entirely change the look and feel of your Ubuntu desktop.

Please note: The gnomenu program will produce load error messages, just accept the “Yes” or “Ok” and “reload” options. This is a bug on Ubuntu 9.10.


Logout and login again.

Check all the applets are in the right location on the bottom panel and then lock them in position. The final bottom panel and gnome menu should look something like the one in the screenshot below. By right-clicking on or near an applet on the bottom panel you can move it after unlocking it.

Windows 7 theme for Ubuntu 9.10


Quick-Synergy GUI for Synergy Configuration

I finally got around to using Synergy between an XPsp2 laptop and Ubuntu 9.04, and it was a (surprisingly quick) success. I ran a sudo apt-get install synergy and wasn’t sure about what to do with the synergy.conf file. Out of curiosity, I ran a quick search for “synergy” in the Jaunty Add/Remove Applications interface and came up with something called Quick-Synergy. Quick-Synergy is a GUI tool for configuring Synergy, and it makes the process WAY easy.

quick-synergy install This installation method will place a shortcut in the accessories folder. Launch it and you’ll have a graphical interface for super quick configuration of Synergy.
quick-synergy configuration On the ‘Share’ tab simply punch in the hostnames of the machines.
quick-synergy configuration On the ‘Use’ tab, enter the hostname/IP of the machine that will be the server for Synergy (AKA the machine that has the keyboard and mouse connected to it).