Created
March 30, 2014 13:22
-
-
Save FauxFaux/9872730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sta() { s service unbound start 2>/dev/null >/dev/null && echo started } | |
sto() { s service unbound stop >/dev/null && echo stopped } | |
ki() { s killall unbound >/dev/null && echo killed } | |
te() { dig +dnssec example.com @localhost | fgrep HEADER } | |
ki; sta; te; te; sto; sta; te; te; sto; sta; te; ki; sta; te; te | |
killed | |
started | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51393 | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40128 | |
stopped | |
started | |
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 36560 | |
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 7754 | |
stopped | |
started | |
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31936 | |
killed | |
started | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11538 | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48761 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment