dns-bind help

petros ppap sibas11 at hotmail.com
Sat Feb 26 13:27:44 EET 2005


Geia xara
eimai me suse9.0 kai prospa8o na katalabo pos leitourgei to olo 8ema me 
dns-bind
mia proti boi8eia 8elo apo kapoion na mou dosei ta arxika

/var/lib/named/localhost.zone
/var/lib/named/127.0.0.zone

ta allaksa kai den exo kratisi kapoio backup (blakeia)
sunexizo

exo kanei ta akolou8a san proto bima gia na katalabo ti ginete

/ect/named.conf

zone "." in {
        type hint;
        file "root.hint";
};

zone "localhost" in {
        type master;
        file "localhost.zone";
};

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

zone "example.net.in-addr.arpa" in {
        type master;
        file "example.net.zone";
};

===========================================
/var/lib/named/example.net.zone

TTL 1W
@       IN      SOA     dns1.example.net. hostmaster.example.net. (
                        2005022601
                        8H
                        2H
                        1W
                        1D )
          IN       NS     dns1.example.net.
          IN       NS     dns2.example.net.
localhost        A       127.0.0.1
dns1    IN      A       192.168.1.105
dns2    IN      A       192.168.1.106
www   CNAME         dns1

===========================================
/var/lib/named/localhost.zone

$TTL 1W
@       IN      SOA     dns1.example.net. hostmaster.example.net. (
                        2005022401
                        8H
                        2H
                        1W
                        1D )

                 NS     dns1
localhost     A       127.0.0.1
dns1          A       192.168.1.105

============================================
/var/lib/named/127.0.0.zone
$TTL 1W
@               IN SOA    dns1.example.net. hostmaster.example.net. (
                                42
                                2D
                                4H
                                6W
                                1W )

                 IN NS           dns1.example.net.
1               IN PTR          localhost.

===================================

tora exo mperdeutei me to localhost.zone kai me to 127.0.0.zone
mipos mporei kapoios na dei an to parapano paradeigma 8a leitourgouse!
kai ti prepei na prosekso h na allakso


ppap

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




More information about the Migrate2linux mailing list