Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Internet, Networking, and Wireless
Web browsers cannot connect to server google/yahoo/youtube.com? help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dtravis7" data-source="post: 1303208" data-attributes="member: 8287"><p>I hope you are not putting in the $ first thing. Second you HAVE to give OSX your admin password to run Vim and other editors. You are giving the OS the Root Password. That is the way Unix OS's work and why they are more secure.</p><p></p><p>I just tried it here like this:</p><p></p><p>Open the Terminal in Utilities.</p><p>type in:</p><p></p><p>cd /private/etc</p><p></p><p>then type:</p><p></p><p>sudo vim hosts</p><p></p><p>It will ask your OSX Administrator Password. Give it that and the editor will open with the hosts file.</p><p></p><p></p><p>Here is what a proper hosts file looks like.........................</p><p></p><p>#</p><p># Host Database</p><p>#</p><p># localhost is used to configure the loopback interface</p><p># when the system is booting. Do not change this entry.</p><p>##</p><p>127.0.0.1 localhost</p><p>255.255.255.255 broadcasthost</p><p>::1 localhost</p><p>fe80::1%lo0 localhost</p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>~ </p><p>"hosts" 10L, 236C</p><p></p><p></p><p></p><p>I believe it's Command+s to save. It's Command+q to quit vim.</p></blockquote><p></p>
[QUOTE="dtravis7, post: 1303208, member: 8287"] I hope you are not putting in the $ first thing. Second you HAVE to give OSX your admin password to run Vim and other editors. You are giving the OS the Root Password. That is the way Unix OS's work and why they are more secure. I just tried it here like this: Open the Terminal in Utilities. type in: cd /private/etc then type: sudo vim hosts It will ask your OSX Administrator Password. Give it that and the editor will open with the hosts file. Here is what a proper hosts file looks like......................... # # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "hosts" 10L, 236C I believe it's Command+s to save. It's Command+q to quit vim. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Digital Lifestyle
Internet, Networking, and Wireless
Web browsers cannot connect to server google/yahoo/youtube.com? help
Top