Salut. Uite ce vreau. Am un server cu ip fix $IP=213.24.53.1 (de exemplu) si 
am cumparat un nume de domeniu $NUME=mad_ady.ro

Vreau sa rulez un server bind (named) pe serverul meu si sa am aceasta 
asociere nume-ip pentru a fi vizibil din afara cu numele mad_ady.ro

Am citit DNS HOW-TO, dar am ramas in ceata cu unele chestii... 

Uitati ce am pana acuma:
/etc/resolv.conf
-----
nameserver 127.0.0.1
nameserver 194.102.255.2
-----

/etc/named.conf
-----
// secret must be the same as in /etc/rndc.conf
 key mykey {
       algorithm hmac-md5;
       secret "IriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
 };

 controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { mykey; };
 };

options {
        directory "/var/named/";
        pid-file "/var/run/named/named.pid";              // Put pid file in working 
dir
        auth-nxdomain yes;
};

zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
};

// workaround stupid stuff... (OE: Wed 17 Sep 2003)
zone "ac" { type delegation-only; };
zone "cc" { type delegation-only; };
zone "com" { type delegation-only; };
zone "cx" { type delegation-only; };
zone "museum" { type delegation-only; };
zone "net" { type delegation-only; };
zone "nu" { type delegation-only; };
zone "ph" { type delegation-only; };
zone "sh" { type delegation-only; };
zone "tm" { type delegation-only; };
zone "ws" { type delegation-only; };

zone "mad_ady.ro" {
    type master;
    notify no;
    file "mad_ady.ro";
};
------
/var/named/mad_ady.ro
------
$TTL 3D
@ IN SOA ns.mad_ady.ro. mad_ady.ro. (
199802151 ;serial
28800; refresh
14400; retry
3600000; expire
8400; TTL
211)
;
 NS ns ;Inet address of name server
 TXT "Mad_Ady's test DNS"

localhost A 127.0.0.1
mad_ady.ro. A  213.24.53.1 ;am incercat!
www CNAME mad_ady.ro.
ns CNAME mad_ady.ro 
-----
/var/named/named.local
-----
$TTL 3D
@ IN SOA ns.mad_ady.ro. (
1997022700 ;Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
8400
221)
0.0.127.in-addr.arpa. IN NS ns.mad_ady.ro.
1 PTR localhost.
------
/var/named/named.ca  - e un fisier standard creat de distributie (mandrake 
9.2)

Chestia e ca atunci cand apelez local www.mad_ady.ro nu ajunge la serverul meu 
web, chiar daca merge apelat prin IP...

Va rog, spuneti-mi si mie unde gresesc, ca ma chinui de 2 zile!!!


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui