Oto plik named.conf - nic w nim nie zmieniałem od początku:
Kod: Zaznacz cały
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
Kod: Zaznacz cały
options {
directory "/var/cache/bind";
statistics-file "/var/cache/bind/bind.stats";
dump-file "/var/cache/bind/bind.dump";
zone-statistics yes;
allow-recursion { 127.0.0.1; 192.168.1.2/10; };
allow-transfer { 192.168.1.10; };
notify yes;
transfer-format many-answers;
query-source address * port 53;
transfer-source * port 53;
notify-source * port 53;
forwarders {
208.67.222.222;
208.67.220.220;
};
auth-nxdomain yes;
listen-on { 127.0.0.1; 192.168.1.1; };
listen-on-v6 { none; };
Kod: Zaznacz cały
route -n
Kod: Zaznacz cały
acer:/home/uzytkownik# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 eth0
Kod: Zaznacz cały
acer:/home/uzytkownik# /etc/init.d/bind9 restart
Stopping domain name service...: bind9.
Starting domain name service...: bind9.
acer:/home/uzytkownik#
Kod: Zaznacz cały
acer:/var/cache/bind#dir
acer:/var/cache/bind#