-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves robustness of zone parsing.
- Loading branch information
1 parent
82c9017
commit 856a0d0
Showing
8 changed files
with
147 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using Ae.Dns.Protocol.Zone; | ||
using System; | ||
using System.Linq; | ||
|
||
namespace Ae.Dns.Protocol.Records | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$ORIGIN example.com. ; designates the start of this zone file in the namespace | ||
$TTL 3600 ; default expiration time (in seconds) of all RRs without their own TTL value | ||
example.com. IN SOA ns.example.com. username.example.com. ( 2020091025 7200 3600 1209600 3600 ) | ||
example.com. IN NS ns ; ns.example.com is a nameserver for example.com | ||
example.com. IN NS ns.somewhere.example. ; ns.somewhere.example is a backup nameserver for example.com | ||
example.com. IN MX 10 mail.example.com. ; mail.example.com is the mailserver for example.com | ||
@ IN MX 20 mail2.example.com. ; equivalent to above line, "@" represents zone origin | ||
@ IN MX 50 mail3 ; equivalent to above line, but using a relative host name | ||
example.com. IN A 192.0.2.1 ; IPv4 address for example.com | ||
IN AAAA 2001:db8:10::1 ; IPv6 address for example.com | ||
ns IN A 192.0.2.2 ; IPv4 address for ns.example.com | ||
IN AAAA 2001:db8:10::2 ; IPv6 address for ns.example.com | ||
www IN CNAME example.com. ; www.example.com is an alias for example.com | ||
wwwtest IN CNAME www ; wwwtest.example.com is another alias for www.example.com | ||
mail IN A 192.0.2.3 ; IPv4 address for mail.example.com | ||
mail2 IN A 192.0.2.4 ; IPv4 address for mail2.example.com | ||
mail3 IN A 192.0.2.5 ; IPv4 address for mail3.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$ORIGIN localhost. | ||
@ 86400 IN SOA @ root ( | ||
1999010100 ; serial | ||
10800 ; refresh (3 hours) | ||
900 ; retry (15 minutes) | ||
604800 ; expire (1 week) | ||
86400 ; minimum (1 day) | ||
) | ||
@ 86400 IN NS @ | ||
@ 86400 IN A 127.0.0.1 | ||
@ 86400 IN AAAA ::1 |