All of us wish to profile our code or even utilities.
Not always but in rare cases where timeliness is of essence.
Just do this.
How long does a DNS query take?
$ time dig yahoo.com
What about mx query?
$ time dig +short yahoo.com mx
Actually for us to use the mx we have to query the a record of the
mx pointer which is actually a domain name.
In general monitoring is necessary to know whether a daemon is
constantly running.
To do that I use monit though mon also may be useful.
I will send a separate mail.
-Girish
--
Gayatri Hitech
http://gayatri-hitech.com