Commits

Steven Thomas Smith authored and Frank Schima committed 2aea590ca3d
macos-vpn-server: Portfile enhancements

* Portfile enhancements based on PR https://github.com/macports/macports-ports/pull/4978
No tags

net/dns-server/Portfile

Modified
14 14 distfiles
15 15
16 16 description Domain Name System server configuration
17 17 long_description \
18 18 DNS server working configuration for named that provides a basic,\
19 19 working, easily modifiable LAN DNS server. The configuration includes\
20 20 example LAN, .private, and localhost zones, with example A, PTR,\
21 21 and CNAME (alias) records, MX, SPF, DKIM, and DMARC records for email\
22 22 servers, and URI, TXT, and SRV records for Kerberos servers. This\
23 23 configuration is based upon macOS Server.app's VPN server prior to\
24 - its deprecation in Server.app version 5.8. See `man named`.
24 + its deprecation in Server.app version 5.7. See `man named`.
25 25
26 26 homepage https://www.isc.org/
27 27
28 28 depends_run-append port:bind9
29 29
30 30 use_configure no
31 31
32 32 build {}
33 33
34 34 destroot {
172 172 "
173 173 }
174 174
175 175
176 176 notes "The DNS server's initial configuration uses installation-time network\
177 177 settings to provide a basic, working DNS server.
178 178
179 179 Users must reconfigure the installation for their own network\
180 180 specifics by editing the files:
181 181
182 - ${prefix}/etc/named.conf
183 - ${prefix}/var/named/db.*
182 + ${prefix}/etc/named.conf
183 + ${prefix}/var/named/db.*
184 184
185 185 Refer to the *.macports template files and `man named` for details.
186 186
187 187 Post Installation:
188 188
189 189 1. Edit files in the directory ${prefix}/var/named to specify correct DNS\
190 190 and reverse DNS entries. Example: These two commands should point to\
191 191 each other:
192 192
193 - host ${named_host} ${host_lan_ip_address}
194 - host ${host_lan_ip_address} ${host_lan_ip_address}
193 + host ${named_host} ${host_lan_ip_address}
194 + host ${host_lan_ip_address} ${host_lan_ip_address}
195 195
196 196 A rndc.key fil is automatically created with the command:
197 197
198 - rndc-confgen -A hmac-sha512 -a -c ${prefix}/var/named/rndc.key -u named
198 + rndc-confgen -A hmac-sha512 -a -c ${prefix}/var/named/rndc.key -u named
199 199
200 200 2. It is necessary to launch named with:
201 201
202 - sudo port load bind9
202 + sudo port load bind9
203 203
204 204 3. DNS cache on macOS is flushed with the commands:
205 205
206 - dscacheutil -flushcache ; sudo killall -HUP mDNSResponder ; \\
207 - sudo port reload bind9
206 + dscacheutil -flushcache ; sudo killall -HUP mDNSResponder ; \\
207 + sudo port reload bind9
208 208
209 209 4. The DNS server is configured by default to accept requests on port 53\
210 210 over the LAN. Make sure that this port is not exposed to the open\
211 211 internet."
212 212
213 213 livecheck.type none

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut