Styleforum › Forums › General › General Chat › DNS fiddling on my Mac - IT geek wanted
New Posts  All Forums:Forum Nav:

DNS fiddling on my Mac - IT geek wanted

post #1 of 14
Thread Starter 
ok Vietnam seems to be following the China route toward blocking Facebook. We use Ubuntu Linux as our OS at work, and the IT guy there had me do this to route FB elsewhere and get it running:
Quote:
For linux: sudo gedit /etc/hosts then copy and paste these lines into hosts: 69.63.181.12 www.facebook.com 69.63.186.12 apps.facebook.com save
How do I do the same on my Mac?
post #2 of 14
The EXACT same way, in console. Mac=Unix
post #3 of 14
Thread Starter 
i tried that working on the same assumption, i get this:
Quote:
sudo: gedit: command not found
I am thinking that gedit is a gnome thing (since most G stuff seems to refer to that) which the Mac does not recognise as Mac =/= Unix all the time, it just has a Unix at its core.
post #4 of 14
don't use gedit, that is a gnome GUI text editor, use vi, the global *nix text editor. Vi is kind of hard to learn, so you can use TextEdit by going 'sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts'
post #5 of 14
Thread Starter 
uhh, that just opens TextEdit, which I can do in my Applications folder anyhow.... Still, ok, I have it open, under sudo, so full admin rights, then what? Isnt there a GUI way I can do this on my Mac under network settings somewhere?
post #6 of 14
post #7 of 14
You should just move to a civilized country--- there are one or two of them out here.
post #8 of 14
Quote:
Originally Posted by m@T View Post
uhh, that just opens TextEdit, which I can do in my Applications folder anyhow....

Still, ok, I have it open, under sudo, so full admin rights, then what?

Isnt there a GUI way I can do this on my Mac under network settings somewhere?

I edited my post right before you replied. You just have to tack on the filename. Running TextEdit as sudo gives you full permissions to edit any file you want.

Should be a way to do it from the GUI in the Preferences -> Network -> Advanced -> DNS tab though I've never tried in OS X.
post #9 of 14
Quote:
Originally Posted by kwilkinson View Post
You should just move to a civilized country--- there are one or two of them out here.
I consider countries where one can smoke indoors and bribe officials very civilized although I do wonder about the availability of German auto mechanics. That's the important thing.
post #10 of 14
Thread Starter 
Quote:
Originally Posted by LabelKing View Post
I consider countries where one can smoke indoors and bribe officials very civilized although I do wonder about the availability of German auto mechanics. That's the important thing.
Ive launched both Porsche and Volkswagen here in the past year. Coming along, coming along....
post #11 of 14
^^ sig'd.
post #12 of 14
Quote:
Originally Posted by m@T View Post
ok Vietnam seems to be following the China route toward blocking Facebook.

Both these countries have got the right idea! Facebook is a plague.
post #13 of 14
Quote:
Originally Posted by tiecollector View Post
don't use gedit, that is a gnome GUI text editor, use vi, the global *nix text editor. Vi is kind of hard to learn, so you can use TextEdit by going

'sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts'

Nano works well enough for this kind of stuff too.
post #14 of 14
Awesome, free proxy server!
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: General Chat
Styleforum › Forums › General › General Chat › DNS fiddling on my Mac - IT geek wanted