dns:bind_configure_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dns:bind_configure_guide [2022/01/19 10:54] – bstafford | dns:bind_configure_guide [2025/12/15 12:43] (current) – [Logging] bstafford | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| On Ubuntu 16.04, you need to | On Ubuntu 16.04, you need to | ||
| - | < | + | < |
| + | |||
| + | =====Troubleshooting ===== | ||
| + | < | ||
| + | < | ||
| + | ===== Other ===== | ||
| Then < | Then < | ||
| Line 110: | Line 115: | ||
| < | < | ||
| Also | Also | ||
| + | |||
| + | < | ||
| + | sudo chown bind:bind / | ||
| + | sudo chmod ug+w / | ||
| + | |||
| + | |||
| + | '' | ||
| < | < | ||
| options { | options { | ||
| Line 130: | Line 142: | ||
| logging { | logging { | ||
| channel bind_default_log { | channel bind_default_log { | ||
| - | file "/ | + | file "/ |
| //severity debug 9; | //severity debug 9; | ||
| severity info; | severity info; | ||
| Line 139: | Line 151: | ||
| channel bind_update_log { | channel bind_update_log { | ||
| - | file "/ | + | file "/ |
| //severity debug 9; | //severity debug 9; | ||
| severity info; | severity info; | ||
| Line 148: | Line 160: | ||
| channel bind_update-security_log { | channel bind_update-security_log { | ||
| - | file "/ | + | file "/ |
| //severity debug 9; | //severity debug 9; | ||
| severity info; | severity info; | ||
| Line 157: | Line 169: | ||
| channel bind_security_log { | channel bind_security_log { | ||
| - | file "/ | + | file "/ |
| //severity debug 9; | //severity debug 9; | ||
| severity info; | severity info; | ||
| Line 166: | Line 178: | ||
| channel bind_query_log { | channel bind_query_log { | ||
| - | file "/ | + | file "/ |
| //severity debug 10; | //severity debug 10; | ||
| severity info; | severity info; | ||
| Line 175: | Line 187: | ||
| channel bind_lame-servers_log { | channel bind_lame-servers_log { | ||
| - | file "/ | + | file "/ |
| //severity debug 9; | //severity debug 9; | ||
| severity info; | severity info; | ||
| Line 183: | Line 195: | ||
| }; | }; | ||
| - | category default { bind_query_log; }; | + | category default { bind_default_log; }; |
| - | category update { bind_query_log; }; | + | category update { bind_update_log; }; |
| - | category update-security { bind_query_log; }; | + | category update-security { bind_update-security_log; }; |
| - | category security { bind_query_log; }; | + | category security { bind_security_log; }; |
| category queries { bind_query_log; | category queries { bind_query_log; | ||
| - | category lame-servers { bind_query_log; }; | + | category lame-servers { bind_lame-servers_log; }; |
| }; | }; | ||
| </ | </ | ||
| Line 212: | Line 224: | ||
| * The service is listed under Windows Services as "ISC BIND". | * The service is listed under Windows Services as "ISC BIND". | ||
| * Create the folders dns\logs under the installation directory (e.g " | * Create the folders dns\logs under the installation directory (e.g " | ||
| + | * Create the folders dns\keys under the installation directory (e.g " | ||
| * Edit the security properties for the installation directory (e.g. " | * Edit the security properties for the installation directory (e.g. " | ||
| * Copy the configuraiton files into the " | * Copy the configuraiton files into the " | ||
| Line 218: | Line 231: | ||
| * named_forward5353.conf | * named_forward5353.conf | ||
| * All three files should be identicle except for the port they listen on. named_forward53.conf should listen on 53, named_forward5353.conf should listen on 5353 and named.conf should listen on the one you actively want to listen on. We have three files so that it is easy to create a script to copy named_forward53.conf or named_forward5353.conf to named.conf. This allows the automation of moving BIND from port 5353 to 53 and vice-versa. Useful during migrations to Infoblox. | * All three files should be identicle except for the port they listen on. named_forward53.conf should listen on 53, named_forward5353.conf should listen on 5353 and named.conf should listen on the one you actively want to listen on. We have three files so that it is easy to create a script to copy named_forward53.conf or named_forward5353.conf to named.conf. This allows the automation of moving BIND from port 5353 to 53 and vice-versa. Useful during migrations to Infoblox. | ||
| + | * Copy '' | ||
| + | * Query logs are in the file " | ||
| Remember, you cannot set the port of a nslookup query on Windows. The documentation says it is supported but it silently doesn' | Remember, you cannot set the port of a nslookup query on Windows. The documentation says it is supported but it silently doesn' | ||
| Line 224: | Line 239: | ||
| < | < | ||
| dnssec-validation no;</ | dnssec-validation no;</ | ||
| + | |||
| + | This was needed when forwarding to Infoblox (which had DNSSEC disabled). The BIND logs showed something similar to the following | ||
| + | < | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 11: | ||
| + | 12-Dec-2018 12: | ||
| + | 12-Dec-2018 12: | ||
| + | 12-Dec-2018 12: | ||
| + | 12-Dec-2018 12: | ||
| + | 12-Dec-2018 14: | ||
| + | 12-Dec-2018 14: | ||
| + | 12-Dec-2018 14: | ||
| + | 12-Dec-2018 14: | ||
| + | 12-Dec-2018 14: | ||
| + | 12-Dec-2018 14: | ||
| ==== Windows BIND Config ==== | ==== Windows BIND Config ==== | ||
| This file just tells BIND to listen on port 5353 and forward to two IP addresses. | This file just tells BIND to listen on port 5353 and forward to two IP addresses. | ||
| Line 233: | Line 270: | ||
| allow-query { any; }; | allow-query { any; }; | ||
| version none; | version none; | ||
| + | bindkeys-file " | ||
| + | managed-keys-directory " | ||
| + | dnssec-validation auto; | ||
| listen-on port 5353 { any; }; | listen-on port 5353 { any; }; | ||
| minimal-responses yes; | minimal-responses yes; | ||
| Line 348: | Line 388: | ||
| </ | </ | ||
| - | Remember, you may need to add the following to the options section. | + | This is the '' |
| + | < | ||
| + | # which are included as part of BIND 9. As of the current release, the only | ||
| + | # trust anchors it contains are those for the DNS root zone (" | ||
| + | # the ISC DNSSEC Lookaside Validation zone (" | ||
| + | # for any other zones MUST be configured elsewhere; if they are configured | ||
| + | # here, they will not be recognized or used by named. | ||
| + | # | ||
| + | # The built-in trust anchors are provided for convenience of configuration. | ||
| + | # They are not activated within named.conf unless specifically switched on. | ||
| + | # To use the built-in root key, set " | ||
| + | # named.conf options. | ||
| + | # " | ||
| + | # the keys in this file are ignored. | ||
| + | # | ||
| + | # This file is NOT expected to be user-configured. | ||
| + | # | ||
| + | # These keys are current as of Feburary 2017. If any key fails to | ||
| + | # initialize correctly, it may have expired. | ||
| + | # replace this file with a current version. | ||
| + | # bind.keys can always be obtained from ISC at https:// | ||
| + | |||
| + | managed-keys { | ||
| + | |||
| + | # This key (20326) is to be published in the root zone in 2017. | ||
| + | # Servers which were already using the old key (19036) should | ||
| + | # roll seamlessly to this new one via RFC 5011 rollover. Servers | ||
| + | # being set up for the first time can use the contents of this | ||
| + | # file as initializing keys; thereafter, the keys in the | ||
| + | # managed key database will be trusted and maintained | ||
| + | # automatically. | ||
| + | . initial-key 257 3 8 " | ||
| + | +/ | ||
| + | ArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF | ||
| + | 0jLHwVN8efS3rCj/ | ||
| + | oZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ | ||
| + | RUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwN | ||
| + | R1AkUTV74bU="; | ||
| + | };</ | ||
| + | Remember, you may need to add the following to the options section | ||
| < | < | ||
| dnssec-validation no;</ | dnssec-validation no;</ | ||
dns/bind_configure_guide.1642589680.txt.gz · Last modified: (external edit)
