You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
35819b1fb0
* Basic, working, easily modifiable LAN DNS server * Example LAN, .private, and localhost zones * A, PTR, and CNAME (alias) records * MX, SPF, DKIM, and DMARC records for email servers * URI, TXT, and SRV records for Kerberos servers * Semi-automated initial configuration using LAN setup
47 lines
2.4 KiB
Plaintext
47 lines
2.4 KiB
Plaintext
@domain@.@tld@. 10800 IN SOA @domain@.@tld@. admin.@domain@.@tld@. (
|
|
2019033101
|
|
3600
|
|
900
|
|
1209600
|
|
86400)
|
|
10800 IN NS @host@.@domain@.@tld@.
|
|
10800 IN A @HOST_LAN_IP_ADDRESS@
|
|
10800 IN MX 10 @domain@.@tld@.
|
|
10800 IN MX 20 mail.@domain@.@tld@.
|
|
|
|
; SPF, DKIM, and DMARC records. The public DNS records must match these.
|
|
; 10800 IN TXT "v=spf1 a mx +include:comcast.net -all"
|
|
;dkim_rsa2048._domainkey 10800 IN TXT ( "v=DKIM1; k=rsa; "
|
|
; "p=public hash line 1"
|
|
; "public hash line 2" )
|
|
;dkim_ed25519._domainkey 10800 IN TXT "v=DKIM1; k=ed25519; p=public hash"
|
|
;_dmarc 10800 IN TXT "v=DMARC1; p=reject; adkim=r; aspf=r; sp=reject; pct=100; rua=mailto:dmarcreports@@domain@.@tld@"
|
|
|
|
@host@.@domain@.@tld@. 10800 IN A @HOST_LAN_IP_ADDRESS@
|
|
|
|
; MX records *must* point to A records, not CNAME aliases
|
|
mail.@domain@.@tld@. 10800 IN A @HOST_LAN_IP_ADDRESS@
|
|
lists.@domain@.@tld@. 10800 IN A @HOST_LAN_IP_ADDRESS@
|
|
server.@domain@.@tld@. 10800 IN CNAME @host@.@domain@.@tld@.
|
|
www.@domain@.@tld@. 10800 IN CNAME @host@.@domain@.@tld@.
|
|
smtp.@domain@.@tld@. 10800 IN CNAME @host@.@domain@.@tld@.
|
|
|
|
; Kerberos configuration with URI, TXT, and SRV records
|
|
;_kerberos.@HOST@.@DOMAIN@.@TLD@. IN URI 10 1 "udp://@host@.@domain@.@tld@"
|
|
;_kerberos.@HOST@.@DOMAIN@.@TLD@. IN URI 20 1 "tcp://@host@.@domain@.@tld@"
|
|
;_kerberos-master.@HOST@.@DOMAIN@.@TLD@. IN URI 10 1 "udp://@host@.@domain@.@tld@"
|
|
;_kerberos-master.@HOST@.@DOMAIN@.@TLD@. IN URI 20 1 "tcp://@host@.@domain@.@tld@"
|
|
;_kerberos.@host@.@domain@.@tld@. IN TXT "@HOST@.@DOMAIN@.@TLD@"
|
|
;_kerberos-master.@host@.@domain@.@tld@. IN TXT "@HOST@.@DOMAIN@.@TLD@"
|
|
;_kerberos._udp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 88 @host@.@domain@.@tld@.
|
|
;_kerberos._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 88 @host@.@domain@.@tld@.
|
|
;_kerberos._tls._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 88 @host@.@domain@.@tld@.
|
|
;_kerberos-master._udp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 749 @host@.@domain@.@tld@.
|
|
;_kerberos-master._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 749 @host@.@domain@.@tld@.
|
|
;_kerberos-master._tls._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 749 @host@.@domain@.@tld@.
|
|
|
|
; LAN clients
|
|
client1.@domain@.@tld@. 10800 IN A @CLIENT_LAN_IP_ADDRESS@
|
|
client2.@domain@.@tld@. 10800 IN A @CLIENT_LAN_IP_ADDRESS@
|
|
client2-alias.@domain@.@tld@. 10800 IN CNAME client2.@domain@.@tld@.
|