General discussion

  • Creator
    Topic
  • #2202184

    corret my DNS configure in linux

    Locked

    by sidali ·

    hi every body, hope you are all ok , i need tu seting up a dns server in mandriva, my domaine zone is cukm.dz, the hostname is serdns, and the IP is 192.168.0.1….. so i change the folloing files “named.conf, named.local, cukm.dz, cukm.dz.rev, reseolv.conf….” but my dns server don’t work ?!! i dunno why !!?? so i put what i write in the file here and correct me

    first ” /etc/named.conf “;
    // generated by named-bootconf.pl

    // secret must be the same as in /etc/rndc.conf
    include “/etc/rndc.conf”;

    controls {
    inet 127.0.0.1 allow { any; } keys { “key”; };
    };

    options {
    pid-file “/var/run/named/named.pid”;
    directory “/var/named”;
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53

    forwarders {
    208.67.222.222;
    208.67.220.220;
    };
    };

    //
    // a caching only nameserver config
    //
    zone “.” {
    type hint;
    file “named.ca”;
    };

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

    zone “cukm.dz” {
    notify no;
    type master;
    file “cukm.dz”;
    };

    zone “0.168.192.in-addr.arpa” {
    notify no;
    type master;
    file “cukm.dz.rev”;
    };

    second: named.local

    $TTL 1d
    @ IN SOA serdns.cukm.dz. root.cukm.dz. (
    2009052202 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS serdns.

    1 IN PTR localhost.

    third: “cukm.dz”

    $TTL 1d
    @ IN SOA server1.cukm.dz. root.cukm.dz. (
    2009052202 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum

    IN NS serdns.

    ;nous indiquant maitenant les adress des hote
    localhost IN A 127.0.0.1
    serdns IN A 192.168.0.1

    4th: cukm.dz.rev

    $TTL 1d
    @ IN SOA serdns.cukm.dz. root.cukm.dz. (
    2009052202 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS serdns.

    1 IN PTR serdns.cukm.dz.

    waiting for your unswers thnx

All Comments

  • Author
    Replies
    • #2942971

      Setting up DND in Mandriva

      by swdswan ·

      In reply to corret my DNS configure in linux

      I recommend you delete your current setup. It will be simpler to install the drak-wizard. It has an excellent script to setup your DNS.

      So.

      1. Delete your current DNS configuration
      2. Install the drak-wizard. Keywords drak or wizard will find you the right software including the Mandriva installation software.
      3. QUIT the Mandriva installation software, including drakconf
      4. Go back into drakconf. The new version you just installed will now be in use.
      5. Under Sharing there is an icon for setting up DNS. This script will setup your DNS and necessary relationships.

      Enjoy

Viewing 0 reply threads