Skip to content

Instantly share code, notes, and snippets.

@fxlv
Created January 7, 2015 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxlv/33c8cad7c0c51e264e26 to your computer and use it in GitHub Desktop.
Save fxlv/33c8cad7c0c51e264e26 to your computer and use it in GitHub Desktop.
dns resolver tracing with ktrace in openbsd
23513 ping 1420611042.842872 CALL connect(0x4,0x202092630,0x10)
23513 ping 1420611042.842878 STRU struct sockaddr { AF_INET, 10.0.1.1:53 }
23513 ping 1420611042.842890 RET connect 0
23513 ping 1420611042.842896 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611042.843135 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611042.843146 RET sendto 30/0x1e
23513 ping 1420611042.843155 CALL poll(0x7f7fffff9440,0x1,0x1388)
23513 ping 1420611047.846041 RET poll 0
23513 ping 1420611047.846083 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611047.846114 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611047.846365 CALL connect(0x4,0x202092c90,0x10)
23513 ping 1420611047.846390 STRU struct sockaddr { AF_INET, 10.0.1.2:53 }
23513 ping 1420611047.846429 RET connect 0
23513 ping 1420611047.846453 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611047.846813 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611047.846844 RET sendto 30/0x1e
23513 ping 1420611047.846870 CALL poll(0x7f7fffff9440,0x1,0x1388)
23513 ping 1420611052.856066 RET poll 0
23513 ping 1420611052.856102 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611052.856131 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611052.856345 CALL connect(0x4,0x2020929f0,0x10)
23513 ping 1420611052.856369 STRU struct sockaddr { AF_INET, 10.0.1.3:53 }
23513 ping 1420611052.856429 RET connect 0
23513 ping 1420611052.856445 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611052.856768 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611052.856794 RET sendto 30/0x1e
23513 ping 1420611052.856818 CALL poll(0x7f7fffff9440,0x1,0x1388)
23513 ping 1420611057.865974 RET poll 0
23513 ping 1420611057.865993 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611057.866006 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611057.866105 STRU struct sockaddr { AF_INET, 10.0.1.1:53 }
23513 ping 1420611057.866121 RET connect 0
23513 ping 1420611057.866129 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611057.866260 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611057.866270 RET sendto 30/0x1e
23513 ping 1420611057.866283 CALL poll(0x7f7fffff9440,0x1,0xd05)
23513 ping 1420611061.216817 RET poll 0
23513 ping 1420611061.216886 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611061.216941 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611061.217272 STRU struct sockaddr { AF_INET, 10.0.1.2:53 }
23513 ping 1420611061.217308 RET connect 0
23513 ping 1420611061.217329 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611061.217692 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611061.217722 RET sendto 30/0x1e
23513 ping 1420611061.217751 CALL poll(0x7f7fffff9440,0x1,0xd05)
23513 ping 1420611064.565995 RET poll 0
23513 ping 1420611064.566011 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611064.566021 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611064.566100 STRU struct sockaddr { AF_INET, 10.0.1.3:53 }
23513 ping 1420611064.566113 RET connect 0
23513 ping 1420611064.566119 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611064.566259 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611064.566270 RET sendto 30/0x1e
23513 ping 1420611064.566278 CALL poll(0x7f7fffff9440,0x1,0xd05)
23513 ping 1420611067.916669 RET poll 0
23513 ping 1420611067.916795 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611067.916897 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611067.917423 CALL connect(0x4,0x202092630,0x10)
23513 ping 1420611067.917458 STRU struct sockaddr { AF_INET, 10.0.1.1:53 }
23513 ping 1420611067.917502 RET connect 0
23513 ping 1420611067.917531 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611067.917917 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611067.917953 RET sendto 30/0x1e
23513 ping 1420611067.918144 CALL poll(0x7f7fffff9440,0x1,0x1a0a)
23513 ping 1420611074.596512 RET poll 0
23513 ping 1420611074.596613 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611074.596694 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611074.597139 STRU struct sockaddr { AF_INET, 10.0.1.2:53 }
23513 ping 1420611074.597186 RET connect 0
23513 ping 1420611074.597211 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611074.597569 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611074.597600 RET sendto 30/0x1e
23513 ping 1420611074.597629 CALL poll(0x7f7fffff9440,0x1,0x1a0a)
23513 ping 1420611081.276179 RET poll 0
23513 ping 1420611081.276215 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611081.276244 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611081.276448 STRU struct sockaddr { AF_INET, 10.0.1.3:53 }
23513 ping 1420611081.276480 RET connect 0
23513 ping 1420611081.276498 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611081.276944 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611081.277007 RET sendto 30/0x1e
23513 ping 1420611081.277056 CALL poll(0x7f7fffff9440,0x1,0x1a0a)
23513 ping 1420611087.956171 RET poll 0
23513 ping 1420611087.956207 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611087.956234 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611087.956434 STRU struct sockaddr { AF_INET, 10.0.1.1:53 }
23513 ping 1420611087.956464 RET connect 0
23513 ping 1420611087.956482 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611087.956781 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611087.956805 RET sendto 30/0x1e
23513 ping 1420611087.956825 CALL poll(0x7f7fffff9440,0x1,0x3415)
23513 ping 1420611101.307407 RET poll 0
23513 ping 1420611101.307445 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611101.307474 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611101.307690 STRU struct sockaddr { AF_INET, 10.0.1.2:53 }
23513 ping 1420611101.307722 RET connect 0
23513 ping 1420611101.307740 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611101.308205 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611101.308245 RET sendto 30/0x1e
23513 ping 1420611101.308274 CALL poll(0x7f7fffff9440,0x1,0x3415)
23513 ping 1420611126.106106 RET poll 0
23513 ping 1420611126.106114 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611126.106119 RET recvfrom -1 errno 35 Resource temporarily unavailable
23513 ping 1420611126.106165 STRU struct sockaddr { AF_INET, 10.0.1.3:53 }
23513 ping 1420611126.106171 RET connect 0
23513 ping 1420611126.106175 CALL sendto(0x4,0x202091800,0x1e,0,0,0)
23513 ping 1420611126.106252 GIO fd 4 wrote 30 bytes
"\M-`\M-m\^A\0\0\^A\0\0\0\0\0\0\bsuperduperdomain\^Ccom\0\0\^A\0\^A"
23513 ping 1420611126.106260 RET sendto 30/0x1e
23513 ping 1420611126.106266 CALL poll(0x7f7fffff9440,0x1,0x3415)
23513 ping 1420611152.096162 RET poll 0
23513 ping 1420611152.096168 CALL recvfrom(0x4,0x202091c00,0x200,0,0,0)
23513 ping 1420611152.096172 RET recvfrom -1 errno 35 Resource temporarily unavailable
# giving up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment