Skip to content

Instantly share code, notes, and snippets.

@mb00g
Last active November 22, 2019 07:29
Show Gist options
  • Save mb00g/0e7a4f0938ea20bc2a62 to your computer and use it in GitHub Desktop.
Save mb00g/0e7a4f0938ea20bc2a62 to your computer and use it in GitHub Desktop.
update ttl dns bind

Masuk ke /var/named

Jalankan

for zone in *.db; do grep -q xxx.xxx.xxx.xxx $zone && echo "mengubah $zone..." && sed -i 's/14400\(\s*IN\s*A\)/222\1/' $zone; done; rndc reload

Isi xxx.xxx.xxx.xxx dengan IP address server yang di update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment