Update: dnsresolver.py Version 0.0.4
This update brings function= to the definition of a resolve command.
Key-value pair function is optional. If provided, the value will be interpreted as a Python function and called when there is a match. The function must inspect the request and update the reply. Arguments to the function are request, reply and dCommand. The function must return a list with 2 values: first one is True when NXDOMAIN must be returned (and False if there is an answer), second one is an integer with the rcode value, it must be None if there is no rcode set by the function.
An extra Python script (for example with function definitions) can be loaded using option -s.
[dnsresolver_V0_0_4.zip](https://didierstevens.com/files/software/dnsresolver_V0_0_4…
Update: dnsresolver.py Version 0.0.4
This update brings function= to the definition of a resolve command.
Key-value pair function is optional. If provided, the value will be interpreted as a Python function and called when there is a match. The function must inspect the request and update the reply. Arguments to the function are request, reply and dCommand. The function must return a list with 2 values: first one is True when NXDOMAIN must be returned (and False if there is an answer), second one is an integer with the rcode value, it must be None if there is no rcode set by the function.
An extra Python script (for example with function definitions) can be loaded using option -s.
dnsresolver_V0_0_4.zip (http) MD5: 7520FB4510E6ED5E5975A8606852F548 SHA256: 1C4BC4D6030A2534600283962890545D428F2BBAFD85D0B3E934B03B07EA1F6A
No comments yet.