Every IT guy eventually learns how to flush the local cache for a system’s DNS client. The following command has probably wore many a helpdesk or admin keyboard:
There are certainly times where that is the best or only course of action in diagnostics or recovery. For instance, a replacement service may be running with a different IP address such as when a VM or service is moved from one Data Center to the other.
Sometimes the better course is to observe (passively) before any action is taken. Windows PowerShell offers a simple commandlet, Get-DnsClientCache that can be very helpful showing each entry of a host and other useful information such as record type, TTL and the IP addresses. Combine the basic command with some simple processing for more power (below):
PS C:\Users\User> Get-DnsClientCache | where entry -Contains youtu.be
Entry RecordName Record Status Section TimeTo Data Data
Type Live Length
----- ---------- ------ ------ ------- ------ ------ ----
youtu.be youtu.be A Success Answer 58 4 22.214.171.124
youtu.be youtu.be A Success Answer 58 4 126.96.36.199
youtu.be youtu.be A Success Answer 58 4 188.8.131.52
youtu.be youtu.be A Success Answer 58 4 184.108.40.206
youtu.be youtu.be A Success Answer 58 4 220.127.116.11
youtu.be youtu.be A Success Answer 58 4 18.104.22.168
youtu.be youtu.be A Success Answer 58 4 22.214.171.124
youtu.be youtu.be A Success Answer 58 4 126.96.36.199
youtu.be youtu.be A Success Answer 58 4 188.8.131.52
youtu.be youtu.be A Success Answer 58 4 184.108.40.206
youtu.be youtu.be A Success Answer 58 4 220.127.116.11
Go ahead and try it out on your Windows system the next time you feel the urge to flush.
Perhaps I should call this post, “Lazy Man’s IE Session Management”.
On IE9 and IE10 I’ve always wanted a session manager. Well, until I find or make one, I’ll make do with the following PowerShell script:
Get-Process| where name -eq iexplore | foreach kill
or, the PowerShell-less .bat
taskkill /f /im iexplore.exe
When I relaunch IE, I can choose to immediately recovery the session or postpone and later start the recovery via the About:Tabs or Tools link.
For sessions that I regularly start, a simple About:Tabs with my stock choices bring me to particular tasks/projects or workflows.
Now what I’d like to do for IE intensive loads is to create a script that will load X instances of IE, each window housing related tab but only loading under lower process priority and with a even watch to wait for prior tabs and window load completions…
Adobe Flash for better or worse is quite ubiquitous these days. Aside from my servers, I have some version of support across my Windows, Linux and OSX systems. Heck, even on my lower security servers where I have Chrome installed, I have a version of Flash through that browser.
Editing multiple Visio diagrams at the same time leaves something to be desired with the default installation of Visio. Though the View ribbon can help to a small degree, hot keys to move to another Visio document would be ideal. One simple way to increase usability in this scenario is to have Visio 2010 open each document in a new instance so that you can rely on Alt-Tab and Shit-Alt-Tab keystrokes.
Change Visio 2010′s Options
First, go into Visio 2010′s Advanced Options (File -> Options -> Advanced) and select “Put all settings in the Windows registry” as seen below.
Then launch regedit (Start -> Run -> regedit) and disable SingleInstanceFileOpen by changing the value of its key from a 1 (one) to 0 (zero) . Navigate in regedit by the following:
Once there, double-click SingleInstanceFileOpen to modify its value.
Appending a semi-colon (;) and an extension to any phone number in the Google address book allows one to be prompted to complete the dialing with the remaining digits. This is a great help rather than trying to store a series of commas (,) or letter p’s or w’s.
Since the prompt is a yes/no, it’s useful to dial the company line and break to the main operator by selecting ‘no’ when prompted.