Guest User

Untitled

a guest
Mar 17th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. $ cat /etc/bind/named.conf.local
  2. include "/etc/bind/zones.rfc1918";
  3. zone "example.com" {
  4. type master;
  5. file "/etc/bind/zones/db.example.com";
  6. allow-transfer { any; };
  7. update-policy local;
  8. };
  9.  
  10. $ cat /etc/bind/zones/db.example.com
  11. $ORIGIN .
  12. $TTL 172800 ; 2 days
  13. example.com IN SOA ns1.example.com. hostmaster.example.com. (
  14. 116 ; serial
  15. 7200 ; refresh (2 hours)
  16. 900 ; retry (15 minutes)
  17. 1857600 ; expire (3 weeks 12 hours)
  18. 8400 ; minimum (2 hours 20 minutes)
  19. )
  20. NS ns1.example.com.
  21. NS ns1.external-host.com.
  22. NS ns2.external-host.com.
  23. ns1.external-host.com A 1.2.3.1
  24. ns2.external-host.com A 1.2.3.2
  25.  
  26. $ORIGIN example.com.
  27. ns1 A 1.1.1.1
  28. @ IN NS ns1.external-host.com.
  29. @ IN NS ns2.external-host.com.
  30. www IN NS ns1.external-host.com.
  31. www IN NS ns2.external-host.com.
  32. clients A 1.1.1.1
  33. $ORIGIN clients.example.com.
  34. $TTL 3600 ; 1 hour
  35. test A 2.2.2.2
Add Comment
Please, Sign In to add comment