« January 2007 | Main | June 2007 »

May 30, 2007

Watching Old DNS Entries Expire

Slicehost, my current hosting company, is migrating clients to a new IP range. After updating DNS, I was curious to find out how long my old data would be cached.

dig +ttlid buscaluz.org @ns8.zoneedit.com

Next I wanted to monitor my local DNS server as the old entry expired.

watch -n 30 'dig +ttlid buscaluz.org | egrep ^b.*IN.*A'

Man, I love Linux!

May 21, 2007

BIOS Inspection Using dmidecode

Until recently, I thought dmidecode was an interesting curiosity but nothing more. That was until I needed to upgrade the BIOS on a classroom full of machines without disturbing the students. Instead of upgrading each system in a careful order, I jumped on systems as they became available. Eventually, I thought I was done but couldn't be sure. Then it hit me:


for I in {1..20}
do
  ssh root@station$I dmidecode | grep -A 3 'BIOS Info' | grep Version
done

And that is why I love Linux!