named.conf problem

Discussion in 'Installation/Configuration' started by davy, Nov 20, 2007.

  1. davy

    davy New Member

    Hi till and falko

    How can i add the bold line into the named.conf file ?

    acl "trust-lan" { 127.0.0.1/8; 192.168.0.0/16;};
    options {
    // pid-file "/var/named/chroot/var/run/named/named.pid";
    directory "/var/named/chroot/var/named";
    dump-file "/var/named/chroot/var/named/cache_dump.db";
    statistics-file "/var/named/chroot/var/named/named_stats.txt";

    auth-nxdomain no;
    /*
    * 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;
    version "0.0.0";
    datasize 40M;
    allow-transfer {
    "trust-lan";};
    recursion yes;
    allow-notify {
    "trust-lan";
    };
    allow-recursion {
    "trust-lan";
    };
    };

    //
    // a caching only nameserver config
    //
    zone "." {
    type hint;
    file "named.root";
    };

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

    zone "92.64.202.in-addr.arpa" {
    type master;
    file "pri.92.64.202.in-addr.arpa";
    };
    zone "126.168.192.in-addr.arpa" {
    type master;
    file "pri.126.168.192.in-addr.arpa";
    };
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the named.conf template in /root/ispconfig/isp/conf/
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Instead of editing the template in /root/ispconfig/isp/conf/, it is better to create a customized template in /root/ispconfig/isp/conf/customized_templates. :)
     
  4. jbravo

    jbravo New Member

    Are there any rules about creating such templates? Should they have same filenames as master files in /root/ispconfig/isp/conf and they (templates) have just higher priority to ISPConfig?
    Currently i first copy master files before editing to backup repository with date as sufix.

    Greetz .:JbRaVo:.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The templates must have the same name.
     
  6. jbravo

    jbravo New Member

    And i need just copy master file to templates directory then edit&save?
    So i will have this:

    if template_file exist then
    ispconfig_use_template_file
    else
    ispconfig_use_master_file
    fi

    Does it work this way?

    GreetZ .:JbRaVo:.
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Yes, that's right. :)
     
  8. jbravo

    jbravo New Member

    Almost everything is clear right now.
    I've managed to getrid of reverse zone out of ispconfig dns server:) Now my mail logs look much smoother.

    Thanks!

    GreetZ .:JbRaVo:.
     

Share This Page