Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Possible bug with BIND config generate in 2.4.5 (bind package: 9.14_3)

    Scheduled Pinned Locked Moved pfSense Packages
    2.4.5bindbug
    5 Posts 3 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eda2000
      last edited by

      I have just upgraded pfsense to version 2.4.5. After that action bind stopped working (cannot start) ending with errors:

      • rpz is not master or slave zone
      • loading configuration: not found

      After analysis I found that invalid /cf/named/etc/namedb/named.conf file was generated.

      In section OPTIONS, response-policy configuration is missing ".in-addr.arpa" suffix for reverse zone. In a view reverse zone has correct format (also with suffix).

      That cause miscofiguration.

      Generated invalid config file example:

      options {
              ...
      	response-policy {
      		zone "0.168.192";
      	};
              ....
      };
      
      view "local view" { 
      	recursion yes;
      
      	zone "0.168.192.in-addr.arpa" {
      		type master;
      		file "/etc/namedb/master/local view/0.168.192.DB";
      		allow-query { localhost; localnets; };
      		allow-update { localhost; localnets; };
      	};
      
      	zone "." {
      		type hint;
      		file "/etc/namedb/named.root";
      	};
      
      };
      

      Manual edit of file /cf/named/etc/namedb/named.conf and adding suffix fix the issue.

      Can you clarify, please?

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        i have bind on a dedicated server not inside pfsense but
        for me, response policy is defined inside view also i don't have a reverse for rpz, noob question but why a reverse?

        RPZ is essentially a filtering mechanism, either preventing people from visiting internet domains, or pointing them to other locations by manipulating the DNS answers in different ways

        1 Reply Last reply Reply Quote 0
        • S
          sandbrock
          last edited by sandbrock

          My bind service also failed to start after upgrading to 2.4.5, with this same exact error. After deleting my RPZ zone, it started up fine. I believe it is likely a bug, as you said.

          1 Reply Last reply Reply Quote 0
          • kiokomanK
            kiokoman LAYER 8
            last edited by kiokoman

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • E
              eda2000
              last edited by

              Linked issue:
              https://redmine.pfsense.org/issues/10445

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.