-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
Description
Hi again haha :)
I found out that I need to know if a domain exists or not. According to the RFC 1035, it's the RCODE value that gives me this answer and can be one of :
https://www.rfc-editor.org/rfc/rfc1035
RCODE Response code - this 4 bit field is set as part of
responses. The values have the following
interpretation:
0 No error condition
1 Format error - The name server was
unable to interpret the query.
2 Server failure - The name server was
unable to process this query due to a
problem with the name server.
3 Name Error - Meaningful only for
responses from an authoritative name
server, this code signifies that the
domain name referenced in the query does
not exist.
4 Not Implemented - The name server does
not support the requested kind of query.
5 Refused - The name server refuses to
perform the specified operation for
policy reasons. For example, a name
server may not wish to provide the
information to the particular requester,
or a name server may not wish to perform
a particular operation (e.g., zone
I read the code and saw you extract the $rcode at line 515 in DNSQuery.php for debug purposes :
$rcode = $this->header['spec'] & 15;
And never integrate it to DNSResult or DNSAnswer.
Is-it possible to add such data in the DNSAnswer object ? (I don't think the DNSResult need it)
In fact, I only need the raw data (but I'm not saying that a little enumeration could be really cool haha).