• Hi, I am the owner and main administrator of Styleforum. If you find the forum useful and fun, please help support it by buying through the posted links on the forum. Our main, very popular sales thread, where the latest and best sales are listed, are posted HERE

    Purchases made through some of our links earns a commission for the forum and allows us to do the work of maintaining and improving it. Finally, thanks for being a part of this community. We realize that there are many choices today on the internet, and we have all of you to thank for making Styleforum the foremost destination for discussions of menswear.
  • This site contains affiliate links for which Styleforum may be compensated.
  • STYLE. COMMUNITY. GREAT CLOTHING.

    Bored of counting likes on social networks? At Styleforum, you’ll find rousing discussions that go beyond strings of emojis.

    Click Here to join Styleforum's thousands of style enthusiasts today!

    Styleforum is supported in part by commission earning affiliate links sitewide. Please support us by using them. You may learn more here.

DNS fiddling on my Mac - IT geek wanted

Matt

ex-m@Triate
Joined
Jan 14, 2005
Messages
10,765
Reaction score
275
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:
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?
 

butterflystyle

Senior Member
Joined
Oct 15, 2009
Messages
384
Reaction score
3
The EXACT same way, in console. Mac=Unix
 

Matt

ex-m@Triate
Joined
Jan 14, 2005
Messages
10,765
Reaction score
275
i tried that working on the same assumption, i get this:

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.
 

tiecollector

Distinguished Member
Joined
Sep 8, 2006
Messages
6,790
Reaction score
25
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'
 

Matt

ex-m@Triate
Joined
Jan 14, 2005
Messages
10,765
Reaction score
275
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?
 

Jumbie

Distinguished Member
Joined
Nov 19, 2007
Messages
4,051
Reaction score
5

tiecollector

Distinguished Member
Joined
Sep 8, 2006
Messages
6,790
Reaction score
25
Originally Posted by m@T
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.
 

LabelKing

Stylish Dinosaur
Joined
May 24, 2002
Messages
25,421
Reaction score
268
Originally Posted by kwilkinson
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.
 

Matt

ex-m@Triate
Joined
Jan 14, 2005
Messages
10,765
Reaction score
275
Originally Posted by LabelKing
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....
 

whacked

Distinguished Member
Joined
Sep 24, 2006
Messages
7,319
Reaction score
7
^^ sig'd.
 

GQgeek

Stylish Dinosaur
Joined
Mar 4, 2002
Messages
16,568
Reaction score
84
Originally Posted by m@T
ok Vietnam seems to be following the China route toward blocking Facebook.

Both these countries have got the right idea! Facebook is a plague.
 

Zandros

Senior Member
Joined
Apr 8, 2008
Messages
113
Reaction score
0
Originally Posted by tiecollector
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.
 

Featured Sponsor

How important is full vs half canvas to you for heavier sport jackets?

  • Definitely full canvas only

    Votes: 95 38.0%
  • Half canvas is fine

    Votes: 91 36.4%
  • Really don't care

    Votes: 27 10.8%
  • Depends on fabric

    Votes: 42 16.8%
  • Depends on price

    Votes: 38 15.2%

Staff online

Forum statistics

Threads
507,103
Messages
10,593,780
Members
224,355
Latest member
BlackClayHalo
Top