$ sudo dtruss host
www.google.com 10.0.1.1
Password:
...
ocket(0x2, 0x2, 0x11) = 4 0
fcntl(0x4, 0x0, 0x14) = 20 0
close(0x4) = 0 0
fcntl(0x14, 0x3, 0x0) = 2 0
fcntl(0x14, 0x4, 0x6) = 0 0
setsockopt(0x14, 0xFFFF, 0x1022) = 0 0
setsockopt(0x14, 0xFFFF, 0x400) = 0 0
getsockopt(0x14, 0xFFFF, 0x1002) = 0 0
bind(0x14, 0x172918, 0x10) = 0 0
recvmsg(0x14, 0xBFFFEF78, 0x0) = -1 Err#35
kevent(0x3, 0xBFFFF03C, 0x1) = 0 0
sendmsg(0x14, 0xBFFFEF38, 0x0) = 32 0
kevent(0x3, 0x0, 0x0) = 0 0
kevent(0x3, 0x0, 0x0) = 0 0
sendmsg(0x14, 0xBFFFEE98, 0x0) = 32 0
kevent(0x3, 0x0, 0x0) = 0 0
;; connection timed out; no servers could be reached
kevent(0x3, 0x0, 0x0) = 0 0
fstat64(0x1, 0xBFFFEE84, 0xBFFFEF48) = 0 0
ioctl(0x1, 0x4004667A, 0xBFFFEEBC) = 0 0
write_nocancel(0x1, ";; connection timed out; no servers could be reached\n\0", 0x35) = 53 0
kevent(0x3, 0xBFFFE90C, 0x1) = 0 0
kevent(0x3, 0xBFFFE90C, 0x1) = -1 Err#2
close(0x14) = 0 0
kill(0x78E, 0xF, 0x1) = 0 0
sigreturn(0xBFFFE538, 0x1, 0xBFFFE538) = 0 Err#-2
close(0x3) = 0 0
madvise(0x1B7000, 0x40000, 0x9) = 0 0
$ sudo dtruss host -T
www.google.com 10.0.1.1
Password:
...
socket(0x2, 0x1, 0x6) = 4 0
fcntl(0x4, 0x0, 0x14) = 20 0
close(0x4) = 0 0
fcntl(0x14, 0x3, 0x0) = 2 0
fcntl(0x14, 0x4, 0x6) = 0 0
setsockopt(0x14, 0xFFFF, 0x1022) = 0 0
bind(0x14, 0x172918, 0x10) = 0 0
connect(0x14, 0x1C10E4, 0x10) = -1 Err#36
kevent(0x3, 0xBFFFEF3C, 0x1) = 0 0
kevent(0x3, 0x0, 0x0) = 0 0
kevent(0x3, 0x0, 0x0) = 1 0
kevent(0x3, 0xBFFFF0EC, 0x1) = 0 0
getsockopt(0x14, 0xFFFF, 0x1007) = 0 0
recvmsg(0x14, 0xBFFFEE58, 0x0) = -1 Err#35
kevent(0x3, 0xBFFFEF1C, 0x1) = 0 0
sendmsg(0x14, 0xBFFFEE18, 0x0) = 34 0
kevent(0x3, 0x0, 0x0) = 1 0
kevent(0x3, 0xBFFFF0EC, 0x1) = 0 0
recvmsg(0x14, 0xBFFFEF98, 0x0) = 2 0
recvmsg(0x14, 0xBFFFEEB8, 0x0) = 48 0
fstat64(0x1, 0xBFFFD434, 0xBFFFD4F8) = 0 0
ioctl(0x1, 0x4004667A, 0xBFFFD46C) = 0 0
write_nocancel(0x1, "Using domain server:\n\0", 0x15) = 21 0
write_nocancel(0x1, "Name: 10.0.1.1\n\0", 0xF) = 15 0
write_nocancel(0x1, "Address: 10.0.1.1#53\n\0", 0x15) = 21 0
write_nocancel(0x1, "Aliases: \n\0", 0xA) = 10 0
write_nocancel(0x1, "\n\0", 0x1) = 1 0
write_nocancel(0x1, "
www.google.com has address 172.217.0.164\n\0", 0x29) = 41 0
kevent(0x3, 0xBFFFE90C, 0x1) = -1 Err#2
kevent(0x3, 0xBFFFE90C, 0x1) = -1 Err#2
close(0x14) = 0 0
...
madvise(0x1B7000, 0x40000, 0x9) = 0 0
$