Commits

Steven Thomas Smith authored and Frank Schima committed 35819b1fb0a
dns-server: Submission of named DNS server working configuration

* 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
No tags

net/dns-server/files/db.@domain@.@tld@

Added
1 +@domain@.@tld@. 10800 IN SOA @domain@.@tld@. admin.@domain@.@tld@. (
2 + 2019033101
3 + 3600
4 + 900
5 + 1209600
6 + 86400)
7 + 10800 IN NS @host@.@domain@.@tld@.
8 + 10800 IN A @HOST_LAN_IP_ADDRESS@
9 + 10800 IN MX 10 @domain@.@tld@.
10 + 10800 IN MX 20 mail.@domain@.@tld@.
11 +
12 +; SPF, DKIM, and DMARC records. The public DNS records must match these.
13 +; 10800 IN TXT "v=spf1 a mx +include:comcast.net -all"
14 +;dkim_rsa2048._domainkey 10800 IN TXT ( "v=DKIM1; k=rsa; "
15 +; "p=public hash line 1"
16 +; "public hash line 2" )
17 +;dkim_ed25519._domainkey 10800 IN TXT "v=DKIM1; k=ed25519; p=public hash"
18 +;_dmarc 10800 IN TXT "v=DMARC1; p=reject; adkim=r; aspf=r; sp=reject; pct=100; rua=mailto:dmarcreports@@domain@.@tld@"
19 +
20 +@host@.@domain@.@tld@. 10800 IN A @HOST_LAN_IP_ADDRESS@
21 +
22 +; MX records *must* point to A records, not CNAME aliases
23 +mail.@domain@.@tld@. 10800 IN A @HOST_LAN_IP_ADDRESS@
24 +lists.@domain@.@tld@. 10800 IN A @HOST_LAN_IP_ADDRESS@
25 +server.@domain@.@tld@. 10800 IN CNAME @host@.@domain@.@tld@.
26 +www.@domain@.@tld@. 10800 IN CNAME @host@.@domain@.@tld@.
27 +smtp.@domain@.@tld@. 10800 IN CNAME @host@.@domain@.@tld@.
28 +
29 +; Kerberos configuration with URI, TXT, and SRV records
30 +;_kerberos.@HOST@.@DOMAIN@.@TLD@. IN URI 10 1 "udp://@host@.@domain@.@tld@"
31 +;_kerberos.@HOST@.@DOMAIN@.@TLD@. IN URI 20 1 "tcp://@host@.@domain@.@tld@"
32 +;_kerberos-master.@HOST@.@DOMAIN@.@TLD@. IN URI 10 1 "udp://@host@.@domain@.@tld@"
33 +;_kerberos-master.@HOST@.@DOMAIN@.@TLD@. IN URI 20 1 "tcp://@host@.@domain@.@tld@"
34 +;_kerberos.@host@.@domain@.@tld@. IN TXT "@HOST@.@DOMAIN@.@TLD@"
35 +;_kerberos-master.@host@.@domain@.@tld@. IN TXT "@HOST@.@DOMAIN@.@TLD@"
36 +;_kerberos._udp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 88 @host@.@domain@.@tld@.
37 +;_kerberos._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 88 @host@.@domain@.@tld@.
38 +;_kerberos._tls._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 88 @host@.@domain@.@tld@.
39 +;_kerberos-master._udp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 749 @host@.@domain@.@tld@.
40 +;_kerberos-master._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 749 @host@.@domain@.@tld@.
41 +;_kerberos-master._tls._tcp.@HOST@.@DOMAIN@.@TLD@. IN SRV 10 1 749 @host@.@domain@.@tld@.
42 +
43 +; LAN clients
44 +client1.@domain@.@tld@. 10800 IN A @CLIENT_LAN_IP_ADDRESS@
45 +client2.@domain@.@tld@. 10800 IN A @CLIENT_LAN_IP_ADDRESS@
46 +client2-alias.@domain@.@tld@. 10800 IN CNAME client2.@domain@.@tld@.

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

Add shortcut