Archive for April, 2008

How to dig SRV record after creating it in DNS

Thursday, April 10th, 2008

dig <record type> <host.name>

e.g dig SRV _someservice._port.hostname.domainame.com.my OR dig SRV _https._ICMP.host.takizo.com

RFC-WPJ8308

Wednesday, April 9th, 2008

it’s proud to announce that this is the new RFC, RFC-WPJ8308, which only apply to myself or peers that work with me, it simply means that are you not following my standard!

Forget / forgot / cannot remember root password

Tuesday, April 8th, 2008

On a FreeBSD server

1. reboot server
2. choose to boot into single user mode
3. mount -o rw <root partition> e.g. mount -o rw /
4. passwd <root account> e.g. passwd root
5. mount -o ro <root partition> e.g. mount -o ro /
6. reboot server again

Voila !!!

How to dig SRV record after creating it in DNS

Sunday, April 6th, 2008

dig <record type> <host.name>

e.g dig SRV _someservice._port.hostname.domainame.com.my OR dig SRV _https._ICMP.host.takizo.com

ls & rm with regular expression

Friday, April 4th, 2008

e.g. rm -rf backup-20070[8-9]-*

would delete :

  • backup-200708-morning
  • backup-200708-evening
  • backup-200709-night
  • backup-200709-latenight

but not :

  • backup-200706-morning
  • backup-200707-afternoon
  • backup-200711-midnight

e.g. ls backup-20070[1-9] would list all backup starting from January to September but leave October, November & December out, of year 2007.