Fixed undefined error

message is not defined when dns error is thrown.