IDnsServer: updated DirectQueryAsync() definition.

This commit is contained in:
Shreyas Zare
2022-01-23 17:20:48 +05:30
parent 6a31108f7b
commit a444ba34ed

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2021 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -33,8 +33,9 @@ namespace DnsServerCore.ApplicationCommon
/// Allows querying the DNS server core directly. This call supports recursion even if its not enabled in the DNS server configuration. The request wont be routed to any of the installed DNS Apps except for processing APP records. The request and its response are not counted in any stats or logged.
/// </summary>
/// <param name="question">The question record containing the details to query.</param>
/// <returns>The DNS response for the DNS query or <c>null</c> if the request timed out.</returns>
Task<DnsDatagram> DirectQueryAsync(DnsQuestionRecord question);
/// <returns>The DNS response for the DNS query.</returns>
/// <exception cref="TimeoutException">When request times out.</exception>
Task<DnsDatagram> DirectQueryAsync(DnsQuestionRecord question, int timeout = 4000);
/// <summary>
/// Writes a log entry to the DNS server log file.