Strona 1 z 1

[+] Bind - przekierowanie domeny

: 05 września 2010, 20:46
autor: czarownik
Witam.
P
róbuję przekierować domenę na swój serwer DNS ale coś mi to nie wychodzi.

logi:

Kod: Zaznacz cały

05-Sep-2010 14:48:20.750 received control channel command 'stop -p'
05-Sep-2010 14:48:20.750 shutting down: flushing changes
05-Sep-2010 14:48:20.750 stopping command channel on 127.0.0.1#953
05-Sep-2010 14:48:20.750 stopping command channel on ::1#953
05-Sep-2010 14:48:20.753 exiting
05-Sep-2010 14:48:20.807 zone 0.in-addr.arpa/IN: loaded serial 1
05-Sep-2010 14:48:20.808 zone 127.in-addr.arpa/IN: loaded serial 1
05-Sep-2010 14:48:20.808 zone 255.in-addr.arpa/IN: loaded serial 1
05-Sep-2010 14:48:20.809 zone localhost/IN: loaded serial 2
05-Sep-2010 14:48:20.809 /etc/bind/db.domena.pl:20: unknown RR type '@'
05-Sep-2010 14:48:20.809 zone domena.pl/IN: loading from master file /etc/bind/db.domena.pl failed: unknown class/type
05-Sep-2010 14:48:20.809 zone domena.pl/IN: not loaded due to errors.
05-Sep-2010 14:48:20.810 running
Plik: resolv.conf

Kod: Zaznacz cały

nameserver 157.25.5.18
nameserver 193.19.124.254
nameserver 193.25.22.254
nameserver 217.8.168.244
Plik: named.conf

Kod: Zaznacz cały

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};};

zone "domena.pl" {
        type master;
        file "/etc/bind/db.domena.pl";
        allow-transfer { 10.10.100.11; };
        notify yes;


zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";

plik: named.conf.opions

Kod: Zaznacz cały

  auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };

allow-recursion { 127.0.0.1; };
allow-transfer { none; };
notify yes;
transfer-format many-answers;
listen-on { any; };
listen-on-v6 { any; };
//auth-nxdomain yes;
query-source address * port *; //53;
transfer-source * port 53;
notify-source * port 53;
version "Microsoft DNS Server v1.5 (WinME)";

};

logging {
channel security_file { file "/var/log/named/security.log" versions 3 size 30m; severity dynamic; print-time yes; };
channel default_file { file "/var/log/named/default.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel general_file { file "/var/log/named/general.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel database_file { file "/var/log/named/database.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel security_file { file "/var/log/named/security.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel config_file { file "/var/log/named/config.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel resolver_file { file "/var/log/named/resolver.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel xfer-in_file { file "/var/log/named/xfer-in.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel xfer-out_file { file "/var/log/named/xfer-out.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel notify_file { file "/var/log/named/notify.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel client_file { file "/var/log/named/client.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel unmatched_file { file "/var/log/named/unmatched.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel queries_file { file "/var/log/named/queries.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel network_file { file "/var/log/named/network.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel update_file { file "/var/log/named/update.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel dispatch_file { file "/var/log/named/dispatch.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel dnssec_file { file "/var/log/named/dnssec.log" versions 3 size 5m; severity dynamic; print-time yes; };
channel lame-servers_file { file "/var/log/named/lame-servers.log" versions 3 size 5m; severity dynamic; print-time yes;
};
category security { security_file; };
category default { default_file; };
category general { general_file; };
category database { database_file; };
category security { security_file; };
category config { config_file; };
category resolver { resolver_file; };
category xfer-in { xfer-in_file; };
category xfer-out { xfer-out_file; };
category notify { notify_file; };
category client { client_file; };
category unmatched { unmatched_file; };
category queries { queries_file; };
category network { network_file; };
category update { update_file; };
category dispatch { dispatch_file; };
category dnssec { dnssec_file; };
category lame-servers { lame-servers_file; };
};
Plik: db.domena.pl

Kod: Zaznacz cały

$TTL   60
;;$ORIGIN domena.pl.
@       IN      SOA     ns1.domena.pl. root.domena.pl. (
                            3        ; Serial
                           360         ; Refresh
                          1200        ; Retry
                        2419200         ; Expire
                          12000 )        ; Negative Cache TTL
;
;;Wpisy jakie serwery obsługują tą domenę
   IN      NS      ns1.domena.pl.
   IN      NS      ns2.domena.pl.

;; Poczta

   IN    MX      10  poczta.domena.pl.
   IN    MX      20  poczta-backup.domena.pl.

;; WWW
  @     IN A     89.174.7.2
  www   IN A   89.174.7.2
  howks IN A     89.174.7.2
  www   IN A     89.174.7.2



;; Przekierowanie FTP

;ftp in CANME ftp.doena2.pl

;; Przypisanie nazwy do adresu ip
poczta           IN      A   89.174.7.2
poczta-backup    IN      A   193.19.25.2
zastanawia mnie ten błąd

Kod: Zaznacz cały

05-Sep-2010 14:48:20.809 /etc/bind/db.domena.pl:20: unknown RR type '@'

Kod: Zaznacz cały

w tej lini mam wpis:   @     IN A     89.174.7.2
Na ruterze mam otwarte porty i przekierowane na serwer DNS

Kod: Zaznacz cały

ip nat inside source static tcp 10.10.100.10 953 89.174.7.4 953 extendable
ip nat inside source static udp 10.10.100.10 953 89.174.7.4 953 extendable
ip nat inside source static tcp 10.10.100.10 53 89.174.7.4 53 extendable
ip nat inside source static udp 10.10.100.10 53 89.174.7.4 53 extendable
Adres ns1.domena.pl wskazuje na adres 89.174.7.4
domenę domena.pl w hostingu przekierowałem na adres ns dsn1.domena.pl i ns2.domena.pl.
Czy mógłbym prosić o pomoc, bind nie jest za skomplikowany ale nie wiem gdzie robię błąd?

Dodane:
B
łąd był banalny, coś nie tak z kodowaniem pliku db.domena.pl. Po skopiowaniu zawartości i utworzeniu nowego pliku wszystko działa.