Welcome to the Linux Foundation Forum!

LAB 6.2 issue

In the section "Solution 6.2" for On "RedHat, Centos, Fedora, or openSUSE", there is no zone type "primary" for centos 7

file: /etc/named.conf

zone"example.com." IN {
type primary; <- should be "master"
file"example.com.zone";
};

Please fix!
Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-bind

Kind regards,
Denis

Comments

  • jmarinho
    jmarinho Posts: 19

    Same in Ubuntu.

    When I check my configuration with sudo named-checkconf -z:

    /etc/bind/named.conf.local:10: 'primary' unexpected

    It can be solved using master instead of primary.

  • lee42x
    lee42x Posts: 380

    Very interesting.

    https://bind9.readthedocs.io/en/latest/configuration.html

    Uses the "primary" instead of "master". Are you both on CentOS-7 ?
    Please include version of bind being used.

    Thank you, Lee

  • lee42x
    lee42x Posts: 380

    Primaries/Secondaries work in Bind 9.17.3 and later.

    From the source change log:

    --- 9.17.3 released ---
    

    ---lines removed---

    1. [func] Added "primaries" as a synonym for "masters" in
      named.conf, and "primary-only" as a synonym for
      "master-only" in the parameters to "notify", to bring
      terminology up-to-date with RFC 8499. [GL #1948]

    Regards Lee

  • jmarinho
    jmarinho Posts: 19
    edited August 2021

    @lee42x said:
    Very interesting.

    https://bind9.readthedocs.io/en/latest/configuration.html

    Uses the "primary" instead of "master". Are you both on CentOS-7 ?
    Please include version of bind being used.

    Thank you, Lee

    No, I'm on Ubuntu 18.04.
    Now I removed bind9 because i normally clean the server when I finish the labs in every lesson, but the output of apt policy bind9 is:
    jose@lfcs:~$ apt policy bind9
    bind9:
    Installed: (none)
    Candidate: 1:9.11.3+dfsg-1ubuntu1.15
    Version table:
    1:9.11.3+dfsg-1ubuntu1.15 500
    500 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
    500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
    1:9.11.3+dfsg-1ubuntu1 500
    500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

    I have another VM with Ubuntu 20.04 and the Bind version is slightly newer but it is older than you mentioned:
    jose@userver20:~$ apt policy bind9
    bind9:
    Installed: (none)
    Candidate: 1:9.16.1-0ubuntu2.8
    Version table:
    1:9.16.1-0ubuntu2.8 500
    500 http://es.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
    500 http://es.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
    1:9.16.1-0ubuntu2 500
    500 http://es.archive.ubuntu.com/ubuntu focal/main amd64 Packages
    Perhaps it must be warned on labs, depending on the Bind version and perhaps the distribution and the version of the distribution, it might not work with primary and master should be used instead.

  • jmarinho
    jmarinho Posts: 19

    Finally, I try the lab on Ubuntu 20.04 and it works with both primary and master.
    Anyway, perhaps it should be warned on lab, as I usually do the labs on Ubuntu 18.04 because I already have scheduled my certification exam and supposedly the exam will be done on Ubuntu 18.04.
    Other people can do the same to be familiar with the platform they are going to use in the exam. And this is a reason to do so (to use the same platform you will have in the exam), for avoiding such surprises in the test that can distract you or get you nervous

Categories

Upcoming Training