Modify the response on NXDOMAIN Error in python

Hi ,

On receiving the MODULE_EVENT_MODDONE event , If the error is NXDOMAIN then i want to return the specific IP address to the client.

I changed the code as below , but client is always getting the 0.0.0.0 address.

http://www.fit.vutbr.cz/~vasicek/nic-vip/pythonmod/examples/example2.html

Could anyone guide me on this ?

Thanks in advance.

-mthotager