Witam serdecznie. Mam mały kłopot. Wykupiłem sobie 2 domenki i przekierowałem je na IP swojego serwera.
Widziałem już wiele poradników na temat konfiguracji binda i próbowałem na wiele sposobów.
zone "no-cheat.pl" {
type master;
file "/etc/bind/no-cheat.pl";
notify yes;
};
zone "tim3k.pl" {
type master;
file "/etc/bind/tim3k.pl";
notify yes;
};
Wpis w pliku strefy /var/lib/named/etc/bind/no-cheat.pl:
$TTL 604800
@ IN SOA ns1.no-cheat.pl. root.no-cheat.pl. (
2009060301 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS ns1.no-cheat.pl.
IN NS ns2.no-cheat.pl.
IN MX 10 no-cheat.pl.
@ IN A 88.198.65.98
ns1 IN A 88.198.65.98
ns2 IN A 88.198.65.98
Wpis w pliku strefy /var/lib/named/etc/bind/tim3k.pl:
$TTL 604800
@ IN SOA ns1.tim3k.pl. root.tim3k.pl. (
2009060301 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS ns1.tim3k.pl.
IN NS ns2.tim3k.pl.
IN MX 10 tim3k.pl.
@ IN A 88.198.65.98
ns1 IN A 88.198.65.98
ns2 IN A 88.198.65.98
$TTL 604800
$ORIGIN tim3k.pl
@ IN SOA ns1.tim3k.pl. root.tim3k.pl. (
2009060301 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS ns1.tim3k.pl.
IN NS ns2.tim3k.pl.
IN MX 10 tim3k.pl.
@ IN A 88.198.65.98
ns1 IN A 88.198.65.98
ns2 IN A 88.198.65.98
forum IN A 88.198.65.98
$TTL 604800
$ORIGIN tim3k.pl
@ IN SOA ns1.tim3k.pl. root.tim3k.pl. (
2009083104 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS ns1.tim3k.pl.
IN NS ns2.tim3k.pl.
IN MX 10 tim3k.pl.
@ IN A 88.198.65.98
ns1 IN A 88.198.65.98
ns2 IN A 88.198.65.98
forum IN CNAME @
Aug 31 09:58:54 Tim3k named[18356]: received control channel command 'reload'
Aug 31 09:58:54 Tim3k named[18356]: loading configuration from '/etc/bind/named.conf'
Aug 31 09:58:54 Tim3k named[18356]: max open files (1024) is smaller than max sockets (4096)
Aug 31 09:58:54 Tim3k named[18356]: using default UDP/IPv4 port range: [1024, 65535]
Aug 31 09:58:54 Tim3k named[18356]: using default UDP/IPv6 port range: [1024, 65535]
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/named.conf.options:6: using specific query-source port suppresses port randomization and can be insecure.
Aug 31 09:58:54 Tim3k named[18356]: reloading configuration succeeded
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:4: ignoring out-of-zone data (tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:12: ignoring out-of-zone data (tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:14: ignoring out-of-zone data (tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:15: ignoring out-of-zone data (tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:16: ignoring out-of-zone data (ns1.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:17: ignoring out-of-zone data (ns2.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:19: ignoring out-of-zone data (poczta.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:21: ignoring out-of-zone data (tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:22: ignoring out-of-zone data ([url]www.tim3k.pl[/url])
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:23: ignoring out-of-zone data (ns1.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:24: ignoring out-of-zone data (poczta.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:25: ignoring out-of-zone data (ftp.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:29: ignoring out-of-zone data (*.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/forum.tim3k.pl:29: file does not end with newline
Aug 31 09:58:54 Tim3k named[18356]: zone forum.tim3k.pl/IN: has 0 SOA records
Aug 31 09:58:54 Tim3k named[18356]: zone forum.tim3k.pl/IN: has no NS records
Aug 31 09:58:54 Tim3k named[18356]: reloading zones succeeded
Aug 31 09:58:54 Tim3k named[18356]: /etc/bind/tim3k.pl:3: SOA record not at top of zone (tim3k.pl.tim3k.pl)
Aug 31 09:58:54 Tim3k named[18356]: zone tim3k.pl/IN: loading from master file /etc/bind/tim3k.pl failed: not at top of zone
$TTL 604800
$ORIGIN tim3k.pl.
tim3k.pl. IN SOA ns1.tim3k.pl. root.tim3k.pl. (
2009083106 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS ns1.tim3k.pl.
IN NS ns2.tim3k.pl.
IN MX 10 tim3k.pl.
IN A 88.198.65.98
ns1 IN A 88.198.65.98
ns2 IN A 88.198.65.98
forum IN CNAME @
Aug 31 11:58:01 Tim3k named[2010]: received control channel command 'reload'
Aug 31 11:58:01 Tim3k named[2010]: loading configuration from '/etc/bind/named.conf'
Aug 31 11:58:01 Tim3k named[2010]: max open files (1024) is smaller than max sockets (4096)
Aug 31 11:58:01 Tim3k named[2010]: using default UDP/IPv4 port range: [1024, 65535]
Aug 31 11:58:01 Tim3k named[2010]: using default UDP/IPv6 port range: [1024, 65535]
Aug 31 11:58:01 Tim3k named[2010]: /etc/bind/named.conf.options:6: using specific query-source port suppresses port randomization and can be insecure.
Aug 31 11:58:01 Tim3k named[2010]: reloading configuration succeeded
Aug 31 11:58:01 Tim3k named[2010]: reloading zones succeeded
Ponadto sprawdź w /var/log/daemon.log, czy Twój DNS odpowiada na żądania zwrócenia nazwy. Poza tym przez WHOIS widzę, że u Twojego rejestratora nie ma wprowadzonego adresu Twojego DNSa. czy u rejestratora podałeś jako master nazwę swojego serwera DNS (ns1.tim3k.pl) oraz jego adres IP?
Ponadto ja mam w named.conf taką linijkę, aby DNS odpowiadał na żądania:
<VirtualHost *:80>
ServerName forum.tim3k.pl
ServerAlias [url]www.forum.tim3k.pl[/url]
DocumentRoot /var/www/tim3k.pl/forum/
<Directory /var/www/tim3k.pl/forum/>
Options -Indexes <--tutaj jest poza tym chyba błąd bo powinno być Options Indexes, bo z tego co mi się zdaje jak masz -Indexes to indeksowanie plików i katalogów i tak nie działa
AllowOverride All
</Directory>
ErrorLog /var/www/tim3k.pl/logs/error.log
LogLevel warn
CustomLog /var/www/tim3k.pl/logs/access.log combined
</VirtualHost>[color=red]