LiuTianyou opened a new issue, #1805:
URL: https://github.com/apache/hertzbeat/issues/1805

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   When using DNS monitoring on public DNS servers, the returned service status 
code is REFUSED or SERVFAIL.
   
   ### Expected Behavior
   
   Return the response code is  `NOERROR`.
   
   ### Steps To Reproduce
   
   Configuring the DNS server address on hertzbeat as: `8.8.8.8`, port: `53`, 
and the domain to resolve: `hertzbeat.apache.org` returns the response code 
`SERVFAIL`.
   
   ### Environment
   
   ```markdown
   HertzBeat version(s): 1.5
   ```
   
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   Using the command `dig @8.8.8.8 hertzbeat.apache.org` on the same device can 
query the DNS result.
   
   ```java
   Message query = Message.newQuery(Record.newRecord(name, Type.ANY, 
DClass.ANY));
   ```
   
   The second parameter of newRecord is q-class, which is used to specify the 
query class or category in a DNS query. The most commonly used setting is IN 
(Internet). This parameter has a significant impact on the DNS query result.
   
   It may be necessary to make special configurations on the DNS server to 
return correct query results when the q-class parameter is `ANY`.
   
   So, would it be considered to default the q-class parameter to `IN`, or as 
an advanced setting for monitoring, let users fill it in? Of course, a default 
value of `IN` will also be provided.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to