Adding error code check for the domain resolver.
Adding error code check for the domain resolver.

Signed-off-by: Mohamed Shahawy <2c7e103d17e6eacf4a212eae03fbd0ac530df31f@aucegypt.edu>

QuantamHD/OpenROAD,QuantamHD/OpenROAD,QuantamHD/OpenROAD,The-OpenROAD-Project/OpenROAD,QuantamHD/OpenROAD,QuantamHD/OpenROAD,The-OpenROAD-Project/OpenROAD,The-OpenROAD-Project/OpenROAD,The-OpenROAD-Project/OpenROAD,The-OpenROAD-Project/OpenROAD