Zdravim,
tyden se snazim zprovoznit DNS server na ubuntu 11.10 desktop verzi a zacinam byt uz trochu v koncich. Jde o to, ze po nezbytne konfiguraci, kterou jsem vycetl ruzne z internetu, mi DNS funguje, ale pouze lokalne. Jinak DNS server funguje zaroven jako web server. Proto bych chtel poprosit o radu, v cem jeste muze bych chyba. Nize zasilam obsah konfiguracnich souboru:
ADD: v konfiguraci jsem postupoval presne podle navodu na ofic. foru
https://help.ubuntu.com/11.10/serverguide/C/dns-configuration.html
ADD2: Jedna se o cerstvou instalaci ubuntu se vsemi updaty. Jedine co jsem instaloval byl apache a bind.
IP adresa serveru jako takoveho je : 85.70.125.154
Pokud zkusite do vyhledavace zadat 85.70.125.154/index.html nebo 85.70.125.154/test.html, vse funguje, ale
www.automotiveparts.cz popr. automotiveparts.cz uz nefunguje.
ADD3: Me internetove pripojeni je klasicke ADSL od O2 a router pouzivam TP-LINK TD-W8961NB. Server je k routeru pripojen pres wifi - IP adresu mam nastavenou staticky pres network managera na 192.168.1.150.
soubor /etc/bind/named.conf.options:
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
160.218.161.54;
192.168.1.1;
88.103.200.71;
8.8.8.8;
8.8.4.4;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
soubor /etc/bind/named.conf.local:
zone "automotiveparts.cz"
{
type master;
file "/etc/bind/db.automotiveparts.cz";
};
zone "1.168.192.in-addr.arpa"
{
type master;
file "/etc/bind/db.192";
};
soubor /etc/bind/db.automotiveparts.cz
$TTL 604800
@ IN SOA ns1.automotiveparts.cz. root.automotiveparts.cz. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.automotiveparts.cz.
@ IN A 192.168.1.150
ns1 IN A 192.168.1.150
www IN A 192.168.1.150
soubor /etc/bind/db.192
$TTL 604800
@ IN SOA ns1.automotiveparts.cz. root.automotiveparts.cz. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.
150 IN PTR ns1.automotiveparts.cz.com.
soubor /etc/resolv.conf
# Generated by NetworkManager
search automotiveparts.cz
nameserver 192.168.1.150
soubor /etc/network/interfaces
auto lo
iface lo inet loopback
Diky moc za jakoukoliv pomoc, protoze fakt nevim, co by mohlo byt spatne. Do jinych konfiguracnich souboru, nez jsou vyse uvedeny jsem nezasahoval.