Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Engedélyeztem a tűzfalban:
- $IPTABLES -A OUTPUT -p udp -m multiport --ports 68 -j ACCEPT
- /etc/bind/named.conf.local -ban:
- include "/etc/bind/rndc.key";
- controls {
- inet 127.0.0.1 allow {localhost;}
- keys { "rndc-key"; } ;
- };
- zone "peldasuli.local" {
- type master ;
- file "/var/lib/bind/peldasuli.local";
- allow-update { key "rndc-key";};
- };
- zone "168.192.in-addr.arpa" {
- type master ;
- file "/var/lib/bind/168.192";
- allow-update {key "rndc-key"; };
- };
- cp /etc/bind/rndc.key /etc/dhcp
- cd /etc/dhcp
- chown root:dhcpd rndc.key
- mv rndc.key ddns-keys/
- /etc/dhcp/dhcpd.conf -om:
- include " /etc/dhcp/ddns-keys/rndc.key";
- ddns-update-style interim;
- # option definitions common to all supported networks...
- option domain-name "peldasuli.local";
- option domain-name-servers 192.168.1.254;
- default-lease-time 600;
- max-lease-time 7200;
- # Use this to send dhcp log messages to a different log file (you also
- # have to hack syslog.conf to complete the redirection).
- log-facility local7;
- # No service will be given on this subnet, but declaring it helps the
- # DHCP server to understand the network topology.
- subnet 10.0.2.0 netmask 255.255.255.0 {
- }
- # This is a very basic subnet declaration.
- subnet 192.168.1.0 netmask 255.255.255.0 {
- range 192.168.1.111 192.168.1.222;
- option routers 192.168.1.254;
- zone peldasuli.local. {
- primary 127.0.0.1;
- key "rndc.key";
- }
- zone 168.192.in-addr.arpa. {
- primary 127.0.0.1;
- key "rndc.key";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement