As mentioned here, in my macbook only chrome is able to resolve any given host but any other application is not able to do it.
As mentioned in the answer, I tried to edit the file and unload/load the plist file. It is failing with
Invalid property list error.
➜ ~ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist System/Library/LaunchDaemons/com.apple.mDNSResponder.plist: Invalid property list
I tried to delete that file, get a copy of it from another system and load it still it fails.
I also tried to verify if plist file with
➜ ~ plutil /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist: OK
Contents of plist file is available here.
Any ideas on how to fix this issue?