Fix return value of nameserver functions of resolver library