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
Apple Computing Products:
macOS - Operating System
editing etc/hosts/ file on Snow Leopard
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="Raz0rEdge" data-source="post: 1020701" data-attributes="member: 110816"><p>If you only want to make this change locally for yourself..then open up the Terminal and type:</p><p>[CODE]</p><p>sudo vi /etc/hosts</p><p>[/CODE]</p><p>Enter your password when prompted.</p><p></p><p>Use the cursor to go to the bottom of the file, hit 'i' for insert mode, enter the text</p><p>[CODE]</p><p>xxx.xxx.xxx.xxx domain.name</p><p>[/CODE]</p><p>following the other entries there, then hit ESC to get out of insert mode. Now type ":wq". Yes that's, a colon followed by w, q and then ENTER to Write and Quit.</p><p></p><p>You should now be able to do </p><p>[CODE]</p><p>ping domain.name</p><p>[/CODE]</p><p>and it should go to the IP address you just setup.</p><p></p><p>Regards</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1020701, member: 110816"] If you only want to make this change locally for yourself..then open up the Terminal and type: [CODE] sudo vi /etc/hosts [/CODE] Enter your password when prompted. Use the cursor to go to the bottom of the file, hit 'i' for insert mode, enter the text [CODE] xxx.xxx.xxx.xxx domain.name [/CODE] following the other entries there, then hit ESC to get out of insert mode. Now type ":wq". Yes that's, a colon followed by w, q and then ENTER to Write and Quit. You should now be able to do [CODE] ping domain.name [/CODE] and it should go to the IP address you just setup. Regards [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
editing etc/hosts/ file on Snow Leopard
Top