is it save to edit named.conf.options

Discussion in 'Installation/Configuration' started by muekno, Sep 23, 2021.

  1. muekno

    muekno Active Member HowtoForge Supporter

    May it is a silly question, but I like to edit named.conf.options i.e. to set
    Code:
    // hide version number from clients for security reasons.
     version "not currently available";
    
     // optional - BIND default behavior is recursion
     recursion yes;
    
     // provide recursion service to trusted clients only
     allow-recursion { 127.0.0.1; mynetwork; };
    and others like not to listen on ipv6 as I do not use it
    
    I know this file is maintained by by ISPconfig, so will my changes be overwriten when I modify DNS with ISPconfig or will it harm ISPconfig functions updateing DNS
    Thanks for information

    Rainer
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    It will be when updating. You can create a conf-custom template.
     
  3. muekno

    muekno Active Member HowtoForge Supporter

    so you mean I make a named.conf.custom with my options and add it to the include list in named.conf or what elese do you mean with "template"
    Rainer
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No, you can put your custom version in /usr/local/ispconfig/server/conf-custom/install/ as named.conf.options.master
     
    Last edited by a moderator: Sep 24, 2021
    atle and ahrasis like this.
  5. muekno

    muekno Active Member HowtoForge Supporter

    Thank you for clearing this
    Rainer
     
  6. muekno

    muekno Active Member HowtoForge Supporter

    Hello TH0m,
    I tried this, but it seams it replaces the original from the conf directory. I have problems with the syntax too. I tried to follow the syntax of "bind_named.conf.local.master" but no success. I looked for more information ti the ISPConfig template engine but what I found did not help. Can you give a link to a tutorial or a sample i.e. to add a "version "not currently available";" option,
    Thank you
    Rainer
     
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    That is the wrong name, use the same name as the original template, exactly as @Th0m posted.
     
  8. muekno

    muekno Active Member HowtoForge Supporter

    I used this namen named.conf.options.master, but as I do not know the syntax I looked at bind_named.conf.local.master
    Rainer
     
  9. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    When making a 'conf-custom' template, don't change the name, just copy it to the corresponding conf-custom directory. Files in /usr/ispconfig/server/conf/ get copied right to /usr/ispconfig/server/conf-custom/ and template files from the installer get put under /usr/ispconfig/server/conf-custom/install/. This is a template from the installer, so:
    Code:
    curl https://git.ispconfig.org/ispconfig/ispconfig3/-/raw/develop/install/tpl/named.conf.options.master > /usr/local/ispconfig/server/conf-custom/install/named.conf.options.master
     
    ahrasis and muekno like this.
  10. muekno

    muekno Active Member HowtoForge Supporter

    Thank you for that working explanation.
    Happy weekend
    Rainer
     
    Jesse Norell likes this.

Share This Page