[Top]
Protocols
Protocols.DNS
Protocols.DNS.server
|
Method Protocols.DNS.server()->reply_query()
- Method
reply_query
-
mapping reply_query(mapping query, mapping udp_data)
- Description
-
Reply to a query (stub).
- Parameter query
-
Parsed query.
- Parameter udp_data
-
Raw UDP data.
Overload this function to implement the proper lookup.
- Returns
-
Returns 0 (zero) on failure, or a result mapping on success:
"rcode" : int |
Array |
mapping(string:string|int) entry |
"name" : string|array(string) |
"type" : int |
"cl" : int |
|
|
|
|
"qd" : array(mapping(string:string|int))|void |
"an" : array|void | |
"ns" : array|void | |
"ar" : array|void | |
|
|