| 5 | |
| 6 | For those whose system is not connected to the Internet yet,[[BR]] |
| 7 | To ensure BIND will build dnssec-keymgr, install a python module as the root user: [[BR]] |
| 8 | |
| 9 | This command will timeout: |
| 10 | |
| 11 | {{{ |
| 12 | pip3 install ply |
| 13 | }}} |
| 14 | |
| 15 | Download file from another server: |
| 16 | |
| 17 | {{{ |
| 18 | wget http://www.dabeaz.com/ply/ply-3.11.tar.gz |
| 19 | }}} |
| 20 | Then run the command with the file once transferred into your build: |
| 21 | |
| 22 | {{{ |
| 23 | pip3 install ply-3.11.tar.gz |
| 24 | }}} |
| 25 | |
| 26 | '''Processing ./ply-3.11.tar.gz |
| 27 | Installing collected packages: ply |
| 28 | Running setup.py install for ply ... done |
| 29 | Successfully installed ply-3.11n''' |
| 30 | |
| 31 | Note: |
| 32 | https://github.com/dabeaz/ply - Alternate source |
| 33 | |
| 34 | http://www.dabeaz.com/ply/ |
| 35 | PLY is currently in maintenance mode only. [[BR]] |
| 36 | Critical bugs (if any) will be addressed, but no new features are being added.[[BR]] |
| 37 | If you are looking for a parser generator with a more modern flavor, look at the SLY Project.[[BR]] |
| 38 | 02/15/2018 PLY-3.11 is last release. |
| 39 | |
| 40 | |
| 41 | ---- |
| 42 | More information on DLZ |
| 43 | To use DLZ (Dynamically Loadable Zones) in Bind[[BR]] |
| 44 | |
| 45 | https://nlnet.nl/project/bind-dlz/200205-sane/paper.html |
| 46 | |
| 47 | ---- |
| 48 | Error in creating rndc.conf file: |
| 49 | |
| 50 | {{{ |
| 51 | rndc-confgen -r /dev/urandom -b 512 > /etc/rndc.conf && |
| 52 | sed '/conf/d;/^#/!d;s:^# ::' /etc/rndc.conf > /srv/named/etc/named.conf |
| 53 | }}} |
| 54 | '''The -r option has been deprecated.''' |
| 55 | |
| 56 | See Ticket #12649 new defect |
| 57 | BIND-9.14.5 rndc-confgen: The -r option has been deprecated. |
| 58 | |
| 59 | Use this instead: |
| 60 | |
| 61 | {{{ |
| 62 | rndc-confgen -a -b 512 -t /srv/named |
| 63 | }}} |
| 64 | |
| 65 | '''wrote key file "/etc/rndc.key"[[BR]] |
| 66 | wrote key file "/srv/named/etc/rndc.key"''' |
| 67 | |
| 68 | If you ran the command with -r previously, clean up unnecessary files it created. |
| 69 | |
| 70 | {{{ |
| 71 | rm /etc/rndc.conf /srv/named/etc/rndc.conf |
| 72 | }}} |
| 73 | |
| 74 | Notes from man page: |
| 75 | -a option: |
| 76 | Do automatic rndc configuration. This creates a file rndc.key in /etc (or whatever sysconfdir was specified as when BIND was built) that is read by both rndc and named on startup. The rndc.key file defines a default command channel and authentication key allowing rndc to communicate with named on the local host with no further configuration. |
| 77 | Running rndc-confgen -a allows BIND 9 and rndc to be used as drop-in replacements for BIND 8 and ndc, with no changes to the existing BIND 8 named.conf file. |
| 78 | If a more elaborate configuration than that generated by rndc-confgen -a is required, for example if rndc is to be used remotely, you should run rndc-confgen without the -a option and set up a rndc.conf and named.conf as directed. |
| 79 | |
| 80 | -t option: |
| 81 | Used with the -a option to specify a directory where named will run chrooted. An additional copy of the rndc.key will be written relative to this directory so that it will be found by the chrooted named. |
| 82 | |
| 83 | ---- |
| 84 | If you want the latest root.hints file, run this: |
| 85 | |
| 86 | {{{ |
| 87 | wget ftp://rs.internic.net/domain/named.root |
| 88 | wget https://www.internic.net/domain/named.root.md5 |
| 89 | cp /srv/named/etc/namedb/root.hints /srv/named/etc/namedb/root.hints.old |
| 90 | md5sum named.root |grep -f named.root.md5 && mv named.root /srv/named/etc/namedb/root.hints |
| 91 | }}} |
| 92 | If md5sum fails then the file is not updated. |
| 93 | |
| 94 | Only difference as of Oct. 14th, 2019 was the Root Level B |
| 95 | B.ROOT-SERVERS.NET. 3600000 A 199.9.14.201 |
| 96 | |
| 97 | And notice the addr-class "IN" is missing from the records? |
| 98 | Not sure why that is missing there since the instructions in the book say: |
| 99 | "A current copy of root.hints can be obtained from ftp://rs.internic.net/domain/named.root." |
| 100 | |
| 101 | You can use this command to dig the file instead: |
| 102 | |
| 103 | {{{ |
| 104 | dig @a.root-servers.net . ns > db.cache |
| 105 | cat db.cache |grep '^\.\|^[a-z]' >/srv/named/etc/namedb/root.hints |
| 106 | }}} |
| 107 | |
| 108 | That will give you a file very close to the BLFS example. |
| 109 | Sanitized so no leading spaces are introduced. |
| 110 | But seems a bit confusing the names change from [[BR]] |
| 111 | named.root to db.cache to root.hints.[[BR]] |
| 112 | |
| 113 | Maybe someone can explain why this is all over the place? |
| 114 | |
| 115 | |
| 116 | |