Fix error

Fix error while getting response for name server

Signed-off-by: Mariano Gonzalez <marianoangonzalez@gmail.com>