คำสั่ง [FONT=Menlo]strace ping -c 1 yahoo.com
[/FONT]
[FONT=Menlo]# strace ping -c 1 yahoo.com[/FONT]
[FONT=Menlo]execve("/bin/ping", ["ping", "-c", "1", "yahoo.com"], [/* 22 vars */]) = 0[/FONT]
[FONT=Menlo]brk(0) = 0x7f2d26fa4000[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25ca2000[/FONT]
[FONT=Menlo]access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)[/FONT]
[FONT=Menlo]open("/etc/ld.so.cache", O_RDONLY) = 3[/FONT]
[FONT=Menlo]fstat(3, {st_mode=S_IFREG|0644, st_size=43365, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 43365, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2d25c97000[/FONT]
[FONT=Menlo]close(3) = 0[/FONT]
[FONT=Menlo]open("/lib64/libidn.so.11", O_RDONLY) = 3[/FONT]
[FONT=Menlo]read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0/\0\0\0\0\0\0"..., 832) = 832[/FONT]
[FONT=Menlo]fstat(3, {st_mode=S_IFREG|0755, st_size=206672, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 2301768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2d25852000[/FONT]
[FONT=Menlo]mprotect(0x7f2d25884000, 2093056, PROT_NONE) = 0[/FONT]
[FONT=Menlo]mmap(0x7f2d25a83000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x31000) = 0x7f2d25a83000[/FONT]
[FONT=Menlo]close(3) = 0[/FONT]
[FONT=Menlo]open("/lib64/libc.so.6", O_RDONLY) = 3[/FONT]
[FONT=Menlo]read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\356\1\0\0\0\0\0"..., 832) = 832[/FONT]
[FONT=Menlo]fstat(3, {st_mode=S_IFREG|0755, st_size=1920936, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 3750152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2d254be000[/FONT]
[FONT=Menlo]mprotect(0x7f2d25648000, 2097152, PROT_NONE) = 0[/FONT]
[FONT=Menlo]mmap(0x7f2d25848000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18a000) = 0x7f2d25848000[/FONT]
[FONT=Menlo]mmap(0x7f2d2584d000, 18696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f2d2584d000[/FONT]
[FONT=Menlo]close(3) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25c96000[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25c95000[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25c94000[/FONT]
[FONT=Menlo]arch_prctl(ARCH_SET_FS, 0x7f2d25c95700) = 0[/FONT]
[FONT=Menlo]mprotect(0x7f2d25848000, 16384, PROT_READ) = 0[/FONT]
[FONT=Menlo]mprotect(0x7f2d25ca3000, 4096, PROT_READ) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25c97000, 43365) = 0[/FONT]
[FONT=Menlo]brk(0) = 0x7f2d26fa4000[/FONT]
[FONT=Menlo]brk(0x7f2d26fc5000) = 0x7f2d26fc5000[/FONT]
[FONT=Menlo]open("/usr/lib/locale/locale-archive", O_RDONLY) = 3[/FONT]
[FONT=Menlo]fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2d1f62d000[/FONT]
[FONT=Menlo]close(3) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3[/FONT]
[FONT=Menlo]getuid() = 0[/FONT]
[FONT=Menlo]setuid(0) = 0[/FONT]
[FONT=Menlo]getpid() = 20722[/FONT]
[FONT=Menlo]open("/etc/resolv.conf", O_RDONLY) = 4[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0644, st_size=307, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25ca1000[/FONT]
[FONT=Menlo]read(4, "options single-request
# Generat"..., 4096) = 307[/FONT]
[FONT=Menlo]read(4, "", 4096) = 0[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25ca1000, 4096) = 0[/FONT]
[FONT=Menlo]socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]open("/etc/nsswitch.conf", O_RDONLY) = 4[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0644, st_size=1688, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25ca1000[/FONT]
[FONT=Menlo]read(4, "#
# /etc/nsswitch.conf
#
# An ex"..., 4096) = 1688[/FONT]
[FONT=Menlo]read(4, "", 4096) = 0[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25ca1000, 4096) = 0[/FONT]
[FONT=Menlo]open("/etc/ld.so.cache", O_RDONLY) = 4[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0644, st_size=43365, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 43365, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f2d25c97000[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]open("/lib64/libnss_files.so.2", O_RDONLY) = 4[/FONT]
[FONT=Menlo]read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360!\0\0\0\0\0\0"..., 832) = 832[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0755, st_size=65928, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 2151824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f2d1f41f000[/FONT]
[FONT=Menlo]mprotect(0x7f2d1f42b000, 2097152, PROT_NONE) = 0[/FONT]
[FONT=Menlo]mmap(0x7f2d1f62b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xc000) = 0x7f2d1f62b000[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]mprotect(0x7f2d1f62b000, 4096, PROT_READ) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25c97000, 43365) = 0[/FONT]
[FONT=Menlo]open("/etc/host.conf", O_RDONLY) = 4[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25ca1000[/FONT]
[FONT=Menlo]read(4, "multi on
", 4096) = 9[/FONT]
[FONT=Menlo]read(4, "", 4096) = 0[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25ca1000, 4096) = 0[/FONT]
[FONT=Menlo]open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4[/FONT]
[FONT=Menlo]fcntl(4, F_GETFD) = 0x1 (flags FD_CLOEXEC)[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0644, st_size=235, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d25ca1000[/FONT]
[FONT=Menlo]read(4, "#127.0.0.1 localhost localhost"..., 4096) = 235[/FONT]
[FONT=Menlo]read(4, "", 4096) = 0[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25ca1000, 4096) = 0[/FONT]
[FONT=Menlo]open("/etc/ld.so.cache", O_RDONLY) = 4[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0644, st_size=43365, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 43365, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f2d25c97000[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]open("/lib64/libnss_dns.so.2", O_RDONLY) = 4[/FONT]
[FONT=Menlo]read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\20\0\0\0\0\0\0"..., 832) = 832[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0755, st_size=27424, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 2117880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f2d1f219000[/FONT]
[FONT=Menlo]mprotect(0x7f2d1f21e000, 2093056, PROT_NONE) = 0[/FONT]
[FONT=Menlo]mmap(0x7f2d1f41d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x4000) = 0x7f2d1f41d000[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]open("/lib64/libresolv.so.2", O_RDONLY) = 4[/FONT]
[FONT=Menlo]read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\00009\0\0\0\0\0\0"..., 832) = 832[/FONT]
[FONT=Menlo]fstat(4, {st_mode=S_IFREG|0755, st_size=110960, ...}) = 0[/FONT]
[FONT=Menlo]mmap(NULL, 2202248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f2d1efff000[/FONT]
[FONT=Menlo]mprotect(0x7f2d1f015000, 2097152, PROT_NONE) = 0[/FONT]
[FONT=Menlo]mmap(0x7f2d1f215000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x16000) = 0x7f2d1f215000[/FONT]
[FONT=Menlo]mmap(0x7f2d1f217000, 6792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f2d1f217000[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]mprotect(0x7f2d1f215000, 4096, PROT_READ) = 0[/FONT]
[FONT=Menlo]mprotect(0x7f2d1f41d000, 4096, PROT_READ) = 0[/FONT]
[FONT=Menlo]munmap(0x7f2d25c97000, 43365) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "\2508\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 27, MSG_NOSIGNAL, NULL, 0) = 27[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [27]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "\2508\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, [16]) = 27[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "\2508\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 27, MSG_NOSIGNAL, NULL, 0) = 27[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [27]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "\2508\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, [16]) = 27[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "\2508\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 27, MSG_NOSIGNAL, NULL, 0) = 27[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [27]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "\2508\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, [16]) = 27[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "\2508\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 27, MSG_NOSIGNAL, NULL, 0) = 27[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [27]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "\2508\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\0\0\1\0\1", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, [16]) = 27[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "n[\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 38, MSG_NOSIGNAL, NULL, 0) = 38[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [38]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "n[\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, [16]) = 38[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "n[\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 38, MSG_NOSIGNAL, NULL, 0) = 38[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [38]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "n[\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, [16]) = 38[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "n[\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 38, MSG_NOSIGNAL, NULL, 0) = 38[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [38]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "n[\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, [16]) = 38[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])[/FONT]
[FONT=Menlo]sendto(4, "n[\1\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 38, MSG_NOSIGNAL, NULL, 0) = 38[/FONT]
[FONT=Menlo]poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])[/FONT]
[FONT=Menlo]ioctl(4, FIONREAD, [38]) = 0[/FONT]
[FONT=Menlo]recvfrom(4, "n[\203\0\0\1\0\0\0\0\0\0\5yahoo\3com\6luktao\3co"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, [16]) = 38[/FONT]
[FONT=Menlo]close(4) = 0[/FONT]
[FONT=Menlo]write(2, "ping: unknown host yahoo.com
", 29ping: unknown host yahoo.com[/FONT]
[FONT=Menlo]) = 29[/FONT]
[FONT=Menlo]exit_group(2) = ?[/FONT]
[FONT=Menlo]+++ exited with 2 +++
[/FONT]#
[FONT=Menlo]
คำสั่ง strace ping -c 1 yahoo.com 2>&1 | egrep ‘connect|open’
# strace ping -c 1 yahoo.com 2>&1 | egrep 'connect|open'
[/FONT]
[FONT=Menlo]open("/etc/ld.so.cache", O_RDONLY) = 3[/FONT]
[FONT=Menlo]open("/lib64/libidn.so.11", O_RDONLY) = 3[/FONT]
[FONT=Menlo]open("/lib64/libc.so.6", O_RDONLY) = 3[/FONT]
[FONT=Menlo]open("/usr/lib/locale/locale-archive", O_RDONLY) = 3[/FONT]
[FONT=Menlo]open("/etc/resolv.conf", O_RDONLY) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)[/FONT]
[FONT=Menlo]open("/etc/nsswitch.conf", O_RDONLY) = 4[/FONT]
[FONT=Menlo]open("/etc/ld.so.cache", O_RDONLY) = 4[/FONT]
[FONT=Menlo]open("/lib64/libnss_files.so.2", O_RDONLY) = 4[/FONT]
[FONT=Menlo]open("/etc/host.conf", O_RDONLY) = 4[/FONT]
[FONT=Menlo]open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4[/FONT]
[FONT=Menlo]open("/etc/ld.so.cache", O_RDONLY) = 4[/FONT]
[FONT=Menlo]open("/lib64/libnss_dns.so.2", O_RDONLY) = 4[/FONT]
[FONT=Menlo]open("/lib64/libresolv.so.2", O_RDONLY) = 4[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0[/FONT]
[FONT=Menlo]connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.4.4")}, 16) = 0[/FONT]
[FONT=Menlo]# [/FONT]