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)Click to Open Code Editor