It's noteworthy that Motorola has modified parts of the DNS resolution code (in the Bionic libc library) in its phones, so mentioning which device you have might help narrowing the issue.
p.s. the 'ndc resolver' command may be necessary to change default dns configuration. example:
ndc resolver setifdns wlan0 "" 192.168.0.1
ndc resolver setdefaultif if wlan0