talideon.com

Hey, are you tripping? Man, you have to play miniature golf!

March 3, 2008 at 5:23PM Stupid hacks: nsping

Sometimes I need to check if there’s a nameserver running on some host. Here’s the stupid script I use to save myself from having to remember how.

#!/bin/sh
dig @$1 -t a "127.0.0.1" | \
    sed -n -e '/^;; Query time:/p' | \
    cut --delim=" " -f4,5
Technorati Search Technorati Search Irish Bloggers

Comments

No comments.

Post a comment

All form information is optional, but it’s a good idea to fill in your name and email address if you want me to take your comment seriously.

Spammers, don’t bother posting crap down here. The site is set up so that legitimate search engines (Google, for instance) won’t index pages with comments on them. Posting crud here only means you’re wasting my time and patience. Shoo!

Real names, please. Please include!
Won’t be displayed. Please include!
Displayed, if present.