executable_dns 388 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. help_main()
  3. {
  4. echo "\
  5. Usage: dns COMMANDS ARGS...
  6. Run COMMANDS with ARGS
  7. COMMAND must be one of the sub-commands listed below:
  8. general commands
  9. ping fortio/dnsping
  10. Report bugs to: go.wigust@gmail.com."
  11. }
  12. case "$1" in
  13. ping)
  14. docker run fortio/dnsping "${@:2}"
  15. ;;
  16. --help|*)
  17. help_main
  18. exit 0
  19. ;;
  20. esac