So I'm trying to get Ruby on Rails set-up on my development machine (with a fresh install of ubuntu 14.04).
Everything is going well until I get this lovely message from the terminal:
$ gem install rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Connection refused - connect(2) for
"your-dns-needs-immediate-attention.network" port 443
(https://your-dns-needs-immediate-attention.network/
quick/Marshal.4.8/rails-4.1.6.gemspec.rz)
After frantically Duck-Duck-Go-ing all over I found out a lot of people are having the issue.
Luckily, the awesome folks on SO have found this solution (See answer 2) but I've been trying for a while to get my resolv.conf
file free of the offending line.
Since I can't overwrite the /etc/resolv.conf
file, after inspecting the /etc/resolvconf/resolv.conf.d/
directory I only have the base and head files which leads me to believe that the actual contents of the file are being generated elsewhere.
Speaking of contents:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search home.network
And the offending line is search home.network
(according to the people who answered the above linked solution).
Question is, how do I remove this line of text in a persistent way? Is there some kind of magic option or flag to a command that will save the day?
resolvconf