dns: allow v8 to optimize lookup()

Reassigning the values of parameter variables causes
v8 to disable function optimization.