Portál AbcLinuxu, 14. května 2025 00:01
named.conf cat named.conf // This is the primary configuration file for the BIND DNS server named. // // Please read /usr/share/doc/bind/README.Debian for information on the // structure of BIND configuration files in Debian for BIND versions 8.2.1 // and later, *BEFORE* you customize this configuration file. // include "/etc/bind/named.conf.options"; // reduce log verbosity on issues outside our control logging { category lame-servers { null; }; category cname { null; }; }; // prime the server with knowledge of the root servers zone "." { type hint; file "/etc/bind/db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 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 "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; zone "mojedomena.cz" { type master; file "/etc/bind/named.mojedomena.cz"; }; // add local zone definitions here include "/etc/bind/named.conf.local"; // add local zone definitions here include "/etc/bind/named.conf.local";
named.mojedomena.cz cat named.mojedomena.cz ; ; BIND data file for local loopback interface ; $TTL 86400 @ IN SOA mojedomena.cz. root.mojedomena.cz. ( 2008081600 ; Serial 10800 ; Refresh 1800 ; Retry 1209600 ; Expire 604800 ) ; Negative Cache TTL @ IN NS mojedomena.cz. @ IN MX 10 mail.mojedomena.cz. ns IN A 192.168.10.1 mail IN A 192.168.10.1 webmail.mojedomena.cz. IN A 192.168.10.1 www IN CNAME 192.168.10.1 smtp IN CNAME mojedomena.cz.Pokud zadam do localniho postaka mail.mojedomena.cz tak vse funguje jak ma, pokud zadam lokalne webmail.mojedoman.cz tak se dostanu na stranky roundcube kde mam postu na lokalni serveru ale pokud zadam www.mojedomena.cz tak mi napise ze nemuze domenu najit, takhle blbe to chodi jen lokalne. Pomuze mi prosim nekdo z nastavenim Bindu?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.