Guest User

Untitled

a guest
Oct 20th, 2016
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. /etc/network/interfaces file-ban:
  2.  
  3.  
  4. auto enp0s3
  5. iface enp0s3 inet dhcp
  6. dns-nameservers 8.8.8.8
  7.  
  8.  
  9. auto enp0s8
  10. iface enp0s8 inet static
  11. address 192.168.1.254
  12. netmask 255.255.255.0
  13. dns-search peldasuli.local
  14.  
  15.  
  16.  
  17. a tűzfalbeállításnál 53 UDP port engedélyezése
  18.  
  19.  
  20. $IPTABLES -A INPUT -p udp -m multiport --ports 53 -j ACCEPT
  21.  
  22. Itt a többit nem másoltam bele mert ez valószínűleg jó mert a sima névfeloldás megy.
  23.  
  24.  
  25. /etc/bind/named.conf.options
  26. options {
  27. directory "/var/cache/bind";
  28.  
  29. // If there is a firewall between you and nameservers you want
  30.  
  31.  
  32. forwarders {
  33. 8.8.8.8;
  34. };
  35.  
  36. //=====================================================================$
  37. // If BIND logs error messages about the root key being expired,
  38. // you will need to update your keys. See https://www.isc.org/bind-keys
  39. //=====================================================================$
  40. dnssec-validation auto;
  41.  
  42. auth-nxdomain no; # conform to RFC1035
  43. listen-on-v6 { any; };
  44. };
  45.  
  46.  
  47.  
  48. /etc/bind/named.conf.local:
  49.  
  50.  
  51. //
  52. // Do any local configuration here
  53. //
  54.  
  55. // Consider adding the 1918 zones here, if they are not used in your
  56. // organization
  57. //include "/etc/bind/zones.rfc1918";
  58.  
  59. zone "peldasuli.local" {
  60. type master ;
  61. file "/var/lib/bind/peldasuli.local";
  62. };
  63.  
  64. zone "168.192.in-addr.arpa" {
  65. type master ;
  66. file "var/lib/bind/168.192";
  67. };
  68.  
  69.  
  70. /var/lib/bind/peldasuli.local
  71. $TTL 600
  72. peldasuli.local. IN SOA gw.peldasuli.local. root.gw.peldasuli.loc$
  73. 2 ; Serial
  74. 604800 ; Refresh
  75. 86400 ; Retry
  76. 2419200 ; Expire
  77. 604800 ) ; Negative Cache TTL
  78. ;
  79. @ IN NS gw.peldasuli.local.
  80.  
  81. gw.peldasuli.local. IN A 192.168.1.254
  82.  
  83.  
  84. /var/lib/bind/168.192 fájl-ban :
  85. $TTL 600
  86. 168.192.in-addr.arpa. IN SOA gw.peldasuli.local. root.gw.peldasuli.loca$
  87. 2 ; Serial
  88. 604800 ; Refresh
  89. 86400 ; Retry
  90. 2419200 ; Expire
  91. 604800 ) ; Negative Cache TTL
  92. ;
  93. @ IN NS gw.peldasuli.local.
  94. 254.1 IN PTR gw.peldasuli.local.
Advertisement
Add Comment
Please, Sign In to add comment