Moinsen, hab' seit einiger Zeit Probleme mit meiner Bind Configuration. Ich moechte meine Domain nicht nur ueber die www-subdomain ansprechen, sondern auch example.com anstatt nur www.example.com nutzbar machen (und diese dann per mod_rewrite umleiten).
Momentan sieht meine Config sehr einfach aus:
und die Config fuer die mydomain.zone:
Das Problem is dass www.mydomain.ch funktioniert (teilweise, da bekomm ich von diversen Usern Meldungen dass es bei ihnen ned funzt) aber mydomain.ch (ohne www.) geht nicht.
Hat da jemand ne Ahnung?
Momentan sieht meine Config sehr einfach aus:
Code:
options {
directory "/var/bind";
listen-on {
127.0.0.1;
192.168.0.1;
192.168.2.2;
};
// if you have problems and are behind a firewall:
query-source address * port 53;
pid-file "/var/run/named/named.pid";
};
zone "z.y.x.in-addr.arpa" IN {
type master;
file "pri/z.y.x";
allow-update { none; };
notify no;
};
zone "mydomain.net" IN {
type master;
file "pri/mydomain.zone";
allow-update { none; };
notify no;
};
Code:
; Zone File for mydomain.ch
$TTL 3D
@ IN SOA dns1.mydomain.ch. root.mydomain.ch. (
2007101801
8H
2H
4W
1D )
;
NS dns1.mydomain.ch.
MX 10 mail.mydomain.ch.
;
localhost A 127.0.0.1
www A x.y.z.z
demo A x.y.z.z
staging A x.y.z.z
mail MX 10 mail
Das Problem is dass www.mydomain.ch funktioniert (teilweise, da bekomm ich von diversen Usern Meldungen dass es bei ihnen ned funzt) aber mydomain.ch (ohne www.) geht nicht.
Hat da jemand ne Ahnung?