Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

barracuda156

macrumors 68000
Sep 3, 2021
1,782
1,299
Code:
server-105:~ serveradmin$ rndc -V status
status
create task
enabling log channel
WARNING: key file (/opt/local/etc/rndc.key) exists, but using default configuration file (/opt/local/etc/rndc.conf)
create parser
get key for server
get config key list
decode base64 secret
post event
using server 127.0.0.1 (127.0.0.1#953)
create message
render message
parse message
create message
render message
parse message
version: BIND 9.18.21 (Extended Support Version) <id:cb6cff6>
running on localhost: Darwin Power Macintosh 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC
boot time: Tue, 13 Feb 2024 14:59:01 GMT
last configured: Tue, 13 Feb 2024 14:59:02 GMT
configuration file: /opt/local/etc/named.conf
CPUs found: 1
worker threads: 1
UDP listeners per interface: 1
number of zones: 104 (99 automatic)
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 0/900/1000
tcp clients: 0/150
TCP high-water: 0
server is up and running
server-105:~ serveradmin$

Code:
server-105:~ serveradmin$ named -V
BIND 9.18.21 (Extended Support Version) <id:cb6cff6>
running on Darwin Power Macintosh 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC
built by make with  '--prefix=/opt/local' '--disable-silent-rules' '--mandir=/opt/local/share/man' '--with-openssl=/opt/local' '--with-libidn2=/opt/local' '--enable-doh' '--with-dlopen=no' '--with-jemalloc=no' 'CC=/opt/local/bin/gcc-mp-7' 'CFLAGS=-pipe -Os -I/opt/local/include/LegacySupport -arch ppc' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc' 'CPPFLAGS=-I/opt/local/include -I/opt/local/include/LegacySupport'
compiled by GCC 7.5.0
compiled with OpenSSL version: OpenSSL 3.1.5 30 Jan 2024
linked to OpenSSL version: OpenSSL 3.1.5 30 Jan 2024
compiled with libuv version: 1.44.2
linked to libuv version: 1.44.2
compiled with libnghttp2 version: 1.59.0
linked to libnghttp2 version: 1.59.0
compiled with libxml2 version: 2.11.6
linked to libxml2 version: 21106
compiled with json-c version: 0.17
linked to json-c version: 0.17
compiled with zlib version: 1.3.1
linked to zlib version: 1.3.1
threads support is enabled
DNSSEC algorithms: RSASHA1 NSEC3RSASHA1 RSASHA256 RSASHA512 ECDSAP256SHA256 ECDSAP384SHA384 ED25519 ED448
DS algorithms: SHA-1 SHA-256 SHA-384
HMAC algorithms: HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512
TKEY mode 2 support (Diffie-Hellman): yes
TKEY mode 3 support (GSS-API): yes

default paths:
  named configuration:  /opt/local/etc/named.conf
  rndc configuration:   /opt/local/etc/rndc.conf
  DNSSEC root key:      /opt/local/etc/bind.keys
  nsupdate session key: /opt/local/var/run/named/session.key
  named PID file:       /opt/local/var/run/named/named.pid
  named lock file:      /

Since it's a new bind9 version those syntax are invalid. Just need to tweek my config files... But it's up and running.

I also had to hack the launchclt org.isc.named.plist. Couldn't get macports to load bind9. Well, actually does run but the after a few minutes it fails, can't bind to interface. So, I made my own. /Library/LaunchDaemons/org.isc.named.plist. Also, removed Apples plist version so Server Admin doesn't load it.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>org.isc.named</string>
        <key>ProgramArguments</key>
        <array>
                <string>/opt/local/sbin/named</string>
                <string>-f</string>
                <string>-c</string>
                <string>/opt/local/etc/named.conf</string>
        </array>
</dict>
</plist>

Change file permissions to named:named and some are root:named. I'll need further testing.

TIA

The PR is rebased to updated version of bind9: https://github.com/macports/macports-ports/pull/22639
Hopefully gets merged soon.
 

wfburton

macrumors newbie
Feb 10, 2024
16
2

wfburton

macrumors newbie
Feb 10, 2024
16
2
Librenms Syslog

Looks like it's resolving.

Code:
Timestamp
Level
Hostname
Program
Message
Priority
2024-02-15 11:34:09    6    192.168.0.252    NAMED    client @0x413f934 192.168.0.13#54349 (catalog.gamepass.com): query: catalog.gamepass.com IN A + (192.168.0.252)    6
2024-02-15 11:33:57    6    192.168.0.252    NAMED    client @0x413f934 192.168.0.1#11175 (benjamin.logs.roku.com): query: benjamin.logs.roku.com IN A + (192.168.0.252)    6
2024-02-15 11:33:57    6    192.168.0.252    NAMED    client @0x41d2f34 192.168.0.12#47421 (benjamin.logs.roku.com): query: benjamin.logs.roku.com IN A + (192.168.0.252)    6
2024-02-15 11:33:54    6    192.168.0.252    NAMED    client @0x41d2f34 192.168.0.13#54349 (spoc.norton.com): query: spoc.norton.com IN A + (192.168.0.252)    6
2024-02-15 11:33:51    6    192.168.0.252    NAMED    client @0x41d2f34 192.168.0.10#37964 (cfd-v4-service-stitcher-dash-use1-1.prd.pluto.tv): query: cfd-v4-service-stitcher-dash-use1-1.prd.pluto.tv IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4314b34 192.168.0.1#36238 (outbound2j.letsencrypt.org): query: outbound2j.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4329534 192.168.0.1#31648 (outbound2i.letsencrypt.org): query: outbound2i.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4303134 192.168.0.1#28450 (outbound2g.letsencrypt.org): query: outbound2g.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41be734 192.168.0.1#6719 (outbound2f.letsencrypt.org): query: outbound2f.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41ce134 192.168.0.1#56687 (outbound2e.letsencrypt.org): query: outbound2e.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41f4f34 192.168.0.1#29184 (outbound2d.letsencrypt.org): query: outbound2d.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4133534 192.168.0.1#2458 (outbound2c.letsencrypt.org): query: outbound2c.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4300734 192.168.0.1#6451 (outbound2b.letsencrypt.org): query: outbound2b.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4214734 192.168.0.1#63035 (outbound2a.letsencrypt.org): query: outbound2a.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x422e934 192.168.0.1#58747 (outbound1j.letsencrypt.org): query: outbound1j.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x421b334 192.168.0.1#48636 (outbound1i.letsencrypt.org): query: outbound1i.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41a7f34 192.168.0.1#23979 (outbound1g.letsencrypt.org): query: outbound1g.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x415c934 192.168.0.1#10044 (outbound1f.letsencrypt.org): query: outbound1f.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4231934 192.168.0.1#18815 (outbound1e.letsencrypt.org): query: outbound1e.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x420db34 192.168.0.1#40446 (outbound1d.letsencrypt.org): query: outbound1d.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41ecb34 192.168.0.1#63315 (outbound1c.letsencrypt.org): query: outbound1c.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4318d34 192.168.0.1#35171 (outbound1b.letsencrypt.org): query: outbound1b.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4173334 192.168.0.1#42626 (outbound1a.letsencrypt.org): query: outbound1a.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4308534 192.168.0.1#59789 (acme-v02.api.letsencrypt.org): query: acme-v02.api.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4332b34 192.168.0.1#43339 (acme-staging-v02.api.letsencrypt.org): query: acme-staging-v02.api.letsencrypt.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4198134 192.168.0.1#15806 (debian.org): query: debian.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4211d34 192.168.0.1#44875 (www.debian.org): query: www.debian.org IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41d2f34 192.168.0.1#21670 (api.rokutime.com): query: api.rokutime.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4227934 192.168.0.1#11680 (rokutime.com): query: rokutime.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x432bf34 192.168.0.1#41698 (www.rokutime.com): query: www.rokutime.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4195734 192.168.0.1#19783 (samsung.com): query: samsung.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x413f934 192.168.0.1#62244 (www.samsung.com): query: www.samsung.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x430c734 192.168.0.1#15779 (digicert.com): query: digicert.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x4188b34 192.168.0.1#13585 (www.digicert.com): query: www.digicert.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x417d334 192.168.0.1#50447 (pandasecurity.com): query: pandasecurity.com IN A + (192.168.0.252)    6
2024-02-15 11:33:32    6    192.168.0.252    NAMED    client @0x41e8934 192.168.0.1#49675 (www.pandasecurity.com): query: www.pandasecurity.com IN A + (192.168.0.252)    6
2024-02-15 11:33:31    6    192.168.0.252    NAMED    client @0x41e8934 192.168.0.13#54349 (filedownload.lenovo.com): query: filedownload.lenovo.com IN A + (192.168.0.252)    6
2024-02-15 11:33:22    6    192.168.0.252    NAMED    client @0x41e8934 192.168.0.13#54349 (v10.events.data.microsoft.com): query: v10.events.data.microsoft.com IN A + (192.168.0.252)    6
2024-02-15 11:33:21    6    192.168.0.252    NAMED    client @0x41e8934 192.168.0.13#54349 (settings-win.data.microsoft.com): query: settings-win.data.microsoft.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x4214734 192.168.0.1#24304 (pds-init.ess.apple.com): query: pds-init.ess.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x4211d34 192.168.0.1#64014 (bag.itunes.apple.com): query: bag.itunes.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x4205734 192.168.0.1#4430 (init.gc.apple.com): query: init.gc.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x430c734 192.168.0.1#48411 (partiality.itunes.apple.com): query: partiality.itunes.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x422e934 192.168.0.1#63687 (api-glb-ause1c.smoot.apple.com): query: api-glb-ause1c.smoot.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x432bf34 192.168.0.1#34850 (fbs.smoot.apple.com): query: fbs.smoot.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x41ecb34 192.168.0.1#14786 (swallow.apple.com): query: swallow.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x41bc934 192.168.0.1#40032 (xp.apple.com): query: xp.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x4184534 192.168.0.1#33810 (init-p01md.apple.com): query: init-p01md.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x4305b34 192.168.0.1#62599 (client-api.itunes.apple.com): query: client-api.itunes.apple.com IN A + (192.168.0.252)    6
2024-02-15 11:33:20    6    192.168.0.252    NAMED    client @0x4114734 192.168.0.1#58145 (gspe79-ssl.ls.apple.com): query: gspe79-ssl.ls.apple.com IN A + (192.168.0.252)    6
 

wfburton

macrumors newbie
Feb 10, 2024
16
2

ISC Bind 9 Configuration and Statistics

Not sure why I'm only getting QUERY only. I'll have to check if I need to add some configure options.

Code:
Server Incoming Requests by DNS Opcode
Cou…
0
50,000
100,000
QUERY
IQUERY
STATUS
NOTIFY
UPDATE
Opcode    Counter
QUERY    64,660
IQUERY    0
STATUS    0
NOTIFY    0
UPDATE    0
QUERY    64660
IQUERY    0
STATUS    0
NOTIFY    0
UPDATE    0
Total:    64660
 

wfburton

macrumors newbie
Feb 10, 2024
16
2
Now I'm trying to implement Librenms BIND9 app to get statistics with SNMP on my mac mini 2009.
SNMP is running but I'm not getting anywhere. I followed Librenms doc's on this but still no data.

I'm getting SNMP data for everything else. So it is working.
 

barracuda156

macrumors 68000
Sep 3, 2021
1,782
1,299
Any chance to rework the build to not replace named.conf if it already exists. Also, in the PortFile I believe dlopen is no longer a configure option. Can't say in what version of BIND9 it was dropped. Also, should I be concerned that there is no named file lock file.

Could you open the ticket on https://trac.macports.org please and assign to the port maintainer (one into assign to field another into CC danielluke jmroot)?

I am unable to sort the particulars which are not specific to building for PowerPC, since I do not use this software and do not know what it should be doing. From what I understand, your current requests are not specific to PowerPC or macOS < 10.7. So this is a general problem, and should be reported to the port maintainers.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.