Advertisement
Guest User

Untitled

a guest
May 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. [Linux Core]
  2. sudo ifconfig eth0 192.168.1.100
  3. sudo ifconfig eth0 netmask 255.255.255.0
  4. [Bind1]
  5. ifconfig eth0 192.168.1.1
  6. ifconfig eth0 netmask 255.255.255.0
  7. [Bind2]
  8. ifconfig eth0 192.168.1.2
  9. ifconfig eth0 netmask 255.255.255.0
  10.  
  11. [master == BIND1]
  12. cd /etc/bind
  13. nano named.conf
  14. zone "jankulovski.rk"{
  15. type master;
  16. file "/etc/bind/db.jankulovski";
  17. };
  18.  
  19. zone "1.168.192.in-addr.arpa"{
  20. type master;
  21. file "/etc/bind/db.1.168.192";
  22. };
  23.  
  24. zone "1.168.192.in-addr.arpa"{
  25. type master;
  26. file "/etc/bind/db.1.168.192.in-addr.arpa-slave";
  27. masterfile-format text;
  28. master {192.168.1.1;};
  29. };
  30.  
  31. cp db.local db.jankulovski
  32.  
  33. nano db.jankulovski
  34. ;jankulovski.rk
  35. $TTL 604800
  36. jankulovski.rk. IN SOA ns1.jankulovski.rk. ns2.jankulovski.rk. (
  37. 1 ; Serial
  38. 604800 ; Refresh
  39. 86400 ; Retry
  40. 2419200 ; Expire
  41. 604800 ) ; Negative Cache TTL
  42. ;
  43. jankulovski.rk. IN NS ns1.jankulovski.rk.
  44. jankulovski.rk. IN NS ns2.jankulovski.rk.
  45. ns1 IN A 192.168.1.1
  46. ns2 IN A 192.168.1.2
  47. www IN CNAME ns1.jankulovski.rk.
  48.  
  49.  
  50. cp db.local db.1.168.192
  51.  
  52. nano db.1.168.192
  53. ;
  54. ; BIND data file for local loopback interface
  55. ;1.168.192.in-addr.arpa
  56. $TTL 604800
  57. 1.168.192.in-addr.arpa. IN SOA ns1.jankulovski.rk. ns2.jankulovski.rk. (
  58. 2 ; Serial
  59. 604800 ; Refresh
  60. 86400 ; Retry
  61. 2419200 ; Expire
  62. 604800 ) ; Negative Cache TTL
  63. ;
  64. 1.168.192.in-addr.arpa. IN NS ns1.jankulovski.rk.
  65. 1.168.192.in-addr.arpa. IN NS ns2.jankulovskia.rk.
  66. 1 IN PTR ns1.jankulovski.rk.
  67. 2 IN PTR ns2.jankulovski.rk.
  68.  
  69. [linux komp]
  70.  
  71. cd /etc/
  72. vi resolv.conf
  73. nameserver 192.168.1.1
  74. (close: esc + :x + enter)
  75.  
  76.  
  77. [slave]
  78. cd /etc/bind/
  79.  
  80. nano named.conf
  81. zone "jankulovski.rk" {
  82. type slave;
  83. file "/etc/bind/db.jankulovski-slave";
  84. masterfile-format text;
  85. masters {192.168.1.1;};
  86. };
  87.  
  88. zone "jankulovski.rk"{
  89. type slave;
  90. file "/etc/bind/db.jankulovski-slave";
  91. masterfile-format text;
  92. masters {192.168.1.1;};
  93. };
  94.  
  95. zone "1.168.192.in-addr.arpa"{
  96. type slave;
  97. file "/etc/bind/db.1.168.192.in-addr.arpa-slave";
  98. masterfile-format text;
  99. masters {192.168.1.1;};
  100. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement