dns-server (net/dns-server) Add to my watchlist

Domain Name System server configuration

DNS server working configuration for named that provides a basic, working, easily modifiable LAN DNS server. The configuration includes example LAN, .private, and localhost zones, with example A, PTR, and CNAME (alias) records, MX, SPF, DKIM, and DMARC records for email servers, and URI, TXT, and SRV records for Kerberos servers. This configuration is based upon macOS Server.app's DNS server prior to its deprecation in Server.app version 5.7. See `man named`.

Version: 9.16.13 License: BSD GitHub
Maintainers essandess
Categories net
Homepage https://www.isc.org/
Platforms any
Variants -

"dns-server" depends on

run (1)
build (1)

Ports that depend on "dns-server"

No ports


Port notes

The DNS server's initial configuration uses installation-time network settings to provide a basic, working DNS server.

Users must reconfigure the installation for their own network specifics by editing the files:

${prefix}/etc/named.conf
${prefix}/etc/rndc.conf
${prefix}/var/named/db.*

Refer to the *.macports template files and `man named` for details.

Post Installation:

1. Edit files in the directory ${prefix}/var/named to specify correct DNS and reverse DNS entries. Example: These two commands should point to each other:

host host 10.0.1.2
host 10.0.1.2 10.0.1.2

A rndc.key file is automatically created with the command:

rndc-confgen -A hmac-sha512 -a -c ${prefix}/var/named/rndc.key -u named

2. It is necessary to launch named with:

sudo port load bind9

3. DNS cache on macOS is flushed with the commands:

dscacheutil -flushcache ; sudo killall -HUP mDNSResponder ; \
sudo port reload bind9

4. The DNS server is configured by default to accept requests on port 53 over the LAN. Make sure that this port is not exposed to the open internet.


Port Health:

Loading Port Health

Installations (30 days)

1

Requested Installations (30 days)

0