henrydenhengst

DNS automated install and configure on Ubuntu 14.04 LTS

Nov 26th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Before
  4. echo Before > quertytime.txt
  5. dig distrowatch.com | grep 'Query time' >> quertytime.txt
  6. #
  7. sudo apt-get install bind9 dnsutils bind9-doc -y
  8. #
  9. sudo xxx /etc/bind/named.conf.options
  10.   forwarders {
  11.        8.8.8.8;
  12.        8.8.4.4;
  13.   };
  14. #
  15. sudo xxx /etc/bind/named.conf.local
  16. zone "linux.rocks" {
  17.              type master;
  18.              file "/etc/bind/db.linux.rocks";
  19.         };
  20.  
  21. zone "96.168.192.in-addr.arpa" {
  22.         type master;
  23.         notify no;
  24.         file "/etc/bind/db.192";
  25. };
  26. #
  27. sudo cp /etc/bind/db.local /etc/bind/db.linux.rocks
  28. sudo xxx /etc/bind/db.linux.rocks
  29. zie 192.168.1.4
  30. #
  31. sudo cp /etc/bind/db.127 /etc/bind/db.192
  32. sudo xxx /etc/bind/db.192
  33. #
  34. sudo /etc/init.d/bind9 start
  35. #
  36. ping a-host-in-netwerk -c 4 > test.txt
  37. #
  38. #
  39. # After
  40. echo After >> quertytime.txt
  41. dig distrowatch.com | grep 'Query time' >> quertytime.txt
  42. #
  43. # http://mixeduperic.com/ubuntu/seven-easy-steps-to-setting-up-an-interal-dns-server-on-ubuntu.html
Advertisement
Add Comment
Please, Sign In to add comment