resolv.conf

NeXTComputers.org -> The Lounge

Title: resolv.conf
Post by: garethslee on March 19, 2009, 04:00:48 PM
edit.app on my Cube is damaged and won't open. How can I create the resolv.conf file so I can setup my DNS settings?
Title: resolv.conf
Post by: helf on March 19, 2009, 04:37:20 PM
should have the command line editor vi on there.
Title: resolv.conf
Post by: garethslee on March 19, 2009, 04:44:55 PM
Quote from: "helf"should have the command line editor vi on there.

Sorry but I'm a newbie here.
Do you mean terminal.app ?
If so do you know what the commands would be to create resolv.conf ?
Title: resolv.conf
Post by: Andreas on March 20, 2009, 03:09:52 AM
Quote from: "garethslee"
Quote from: "helf"should have the command line editor vi on there.

Sorry but I'm a newbie here.
Do you mean terminal.app ?
If so do you know what the commands would be to create resolv.conf ?

-> Terminal.app (as root)
cd \etc
vi resolv.conf
<type in your text>
(hit the escape key)
<type in:>
:x!

(after typing the : in, the cursor must be on the bottom of the "screen", the : should not be in the typed in text. If so, hit escape one mor time. Escape sets the vi in command mode)
Title: resolv.conf
Post by: garethslee on March 20, 2009, 03:30:06 AM
-> Terminal.app (as root)
cd \etc
vi resolv.conf
<type in your text>
(hit the escape key)
<type in:>
:x!

(after typing the : in, the cursor must be on the bottom of the "screen", the : should not be in the typed in text. If so, hit escape one mor time. Escape sets the vi in command mode)[/quote]

Do you mean by "<type in your text>" that I enter my DNS servers? I have 2 so do I enter one then press return and enter the second?

Also after the (hit the escape key) do I type in "<type in:>" or just "x!"
Title: resolv.conf
Post by: Andreas on March 20, 2009, 03:51:34 AM
Quote from: "garethslee"
Do you mean by "<type in your text>" that I enter my DNS servers? I have 2 so do I enter one then press return and enter the second?

Yes, as long as you are in input mode of vi.

Quote
Also after the (hit the escape key) do I type in "<type in:>" or just "x!"

vi is an editor from a generation that have keyboard without crtl, alt or something like that.

you should read here
http://www.eng.hawaii.edu/Tutor/vi.html
and test with a few files.

Since vi is on most OS available, it's worth to learn how to handle.
Title: resolv.conf
Post by: garethslee on March 20, 2009, 09:39:31 AM
The cube is on the Net!!! A great big thank you to Andreas. Next project will be webserver. so I'll probably be back soon :-)
Title: resolv.conf
Post by: helf on March 20, 2009, 05:23:08 PM
congrats :)

sorry I didnt get back. I left from work right after posting that. heh

Go to top  Forum index