ERROR: While executing gem... (installation)

I’m trying to install middleman on my MBP, running Yosemite. I’m simply running ‘gem install middleman’ at the terminal prompt and receive the following error:

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Operation timed out - connect(2) (https://your-dns-needs-immediate-attention.network/quick/Marshal.4.8/middleman-3.3.6.gemspec.rz)

I’ve also tried to ‘sudo gem install…’ with the same result.

This is the first time I’m attempting to install middleman.

Can you install other gems? That FetchError with the network timeout of https://your-dns-needs-immediate-attention.network seems it might be something out side of Middleman at first blush.

If you have Xfinity modem it might be http://stackoverflow.com/questions/25583938/gem-install-rails-fails-with-dns-error

Turns out, changing the DNS Search Domains field back to http://hds1.ma.comcast.net and restarting fixes the issue.