OpenSeaMap-dev:Server FreeBSD Dns
General
The DNS services for OpenSeaMap don't run on own servers. Nevertheless it should be documented.
Installation
Install PowerDNS.
portmaster -d -B dns/powerdns (deselect database bindings)
Create zone file.
vi /usr/local/etc/pdns/openseamap.org (content for zone file)
Configure PowerDNS.
vi /usr/local/etc/pdns/bindbackend.conf options { directory "/usr/local/etc/pdns"; }; zone "openseamap.org" { type master; file "openseamap.org"; };
vi /usr/local/etc/pdns/pdns.conf # IP address allowed to perform AXFR requests. allow-axfr-ips=x.x.x.x daemon=yes launch=bind bind-config=/usr/local/etc/pdns/bindbackend.conf bind-check-interval=300 local-address=127.0.0.17 local-ipv6=fec0::17 master=yes setgid=pdns setuid=pdns version-string=anonymous
Add user/group for DNS service.
pw groupadd pdns pw useradd pdns -g pdns -s /usr/sbin/nologin
Start DNS service.
vi /etc/rc.conf pdns_enable="YES"
service pdns start
Maintenance
Reload zone file.
pdns_control bind-reload-now openseamap.org