Reverse DNS Lookup with Dig

Reverse DNS, in simple explanation it means that resolve your IP address into hostname. Nowaday it became a must have requirement for mail server’s IP address. It is also one of the method to determine your mail server IP is glue to the hostname.

Here is how to find out the reverse DNS IP address is pointed to which DNS server for zone delegation.


dig -x 175.136.188.90

; <<>> DiG 9.6.0-APPLE-P2 <<>> -x 175.136.188.90
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 21938
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;90.188.136.175.in-addr.arpa.   IN      PTR

;; AUTHORITY SECTION:
136.175.in-addr.arpa.   10800   IN      SOA     ns1.tm.net.my. dnsadm.tmnet.com.my. 2011012113 10800 3600 604800 86400

;; Query time: 37 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sat Jan 22 19:39:12 2011
;; MSG SIZE  rcvd: 111

The result above shown

  • The SOA record shown the IP Address is pointed to ns1.tm.net.my for reverse DNS delegation.
  • The zone 136.175.in-addr.arpa is delegating the IP 175.136.188.90

This command is pretty useful when you want to find out is the reverse DNS delegation works correctly.

Short Cut Key to Lock Screen in Mac OSX

Other than locking screen with Expose, there is another way to lock you Mac OSX by shutting off the screen


Ctrl + Shift + Eject

The short cut key is to turn off your monitor screen. Before that, do make sure password lock is enabled by follow below.

  • Go to System Preferences > Security
  • Check “Required password immediately after sleep or screen saver begins

How to Extend Apple Mac OSX to External Monitor Only

Happy to get myself a 23″ LED monitor, never realize how convenient it is to use 1920 x 1080 resolutions, I can now multiple on 9 terminals at one time, crazy huh?

Here is how you can extend your Mac OSX display to external monitor only. Well, don’t forget you need an external keyboard to make yourself comfort at sitting posture ;)

  • on System Preference > Displays, choose mirror display
  • Put your laptop into sleep by closing the lid
  • Clicking and clicking on your keyboard/mouse to wake up your OSX, when it’s awake, your external monitor will become the only display
  • In order to wake your display on your Macbook, just press the keyboard on your Macbook

Unfortunately, I can’t find any tools/apps can switch the display to external monitor. If you found one, do let me know.

How to do Word Count on TextMate

How many “words” of code you written on TextMate? Try this shortcut to count total word in TextMate

Ctrl + Shift + N

Top 20 Favorite Free WordPress Themes

One of the coolest stuff of using WordPress is the Free Themes. Some people buy premium theme for better design and management. I personally hardly spend buying premium theme, as I think it’s not necessary for me yet (for time being). I would like to introduce you… My top 20 all time favorite Free WordPress Themes.

Theme 01 Blue Steel

Theme 02 xPlosive Reloaded

Read the rest of this entry »