Skip to content

Instantly share code, notes, and snippets.

@henri
Last active September 23, 2021 01:32
Show Gist options
  • Save henri/d2b8ca0311b4fb1e5ee8bd0192083eff to your computer and use it in GitHub Desktop.
Save henri/d2b8ca0311b4fb1e5ee8bd0192083eff to your computer and use it in GitHub Desktop.
#!/bin/bash
# This works on Ubuntu (likely other GNU/LINUX distributions as well - will test Arch shortly). BIND 9.1 or newer.
# flush it all
rndc flush
rndc reload
# flush single domain
rndc flushname cnn.com
# flush a single view
rndc flush internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment