fix to return allocated pointer, not buffer pointer
fix cname resolving issue
ajdust packet detail output and enable "-q" option