I am trying to following instructions on homebrew homepage but the following
ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ins
For people facing this problem I had resolved it by adding a new name server into network configuration.
Click on "System Preferences" then "Network", "Advanced" , "DNS", "+" and enter IP of the new name server, a good public name server is "8.8.8.8" .