Skip to content

Commit

Permalink
Adding AXFR to the enum because it already works anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaCo committed May 12, 2018
1 parent 72cd825 commit a1f79ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/MiniDig/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"DigApp": {
"commandName": "Project",
"commandLineArgs": "perf -c 1 -r 10 "
"commandLineArgs": ""
},
"MiniDig": {
"commandName": "Project"
Expand Down
9 changes: 9 additions & 0 deletions src/DnsClient/QueryType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ public enum QueryType : short
/// <seealso href="https://tools.ietf.org/html/rfc3755">RFC 3755</seealso>
RRSIG = ResourceRecordType.RRSIG,

/// <summary>
/// DNS zone transfer request.
/// This can be used only if <see cref="ILookupClient.UseTcpOnly"/> is set to true as <c>AXFR</c> is only supported via TCP.
/// <para>
/// The DNS Server might only return results for the request if the client connection/IP is allowed to do so.
/// </para>
/// </summary>
AXFR = 252,

/// <summary>
/// Generic any query *.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion tools/etc/named.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ acl "trusted" {
zone "mcnet.com" IN {
type master;
file "db.192.168.178.txt";
#allow-transfer {192.168.178.1;};
allow-transfer {192.168.178.1; localhost;};
};

0 comments on commit a1f79ba

Please sign in to comment.