Reimplementing forceDnsResolution() method w/o jdk1.7 method