Jump to content

Error...can not resolve local host


lake113

Recommended Posts

Hi Lake113-

 

Setp 2 is telling you to edit the file /private/etc/hosts. That is done on the command line with the "nano" editor. After you get your hostname from step #1, type:

 

sudo nano /private/etc/hosts

 

You will be prompted for your MAC's admin password. (The same one for your user account likely) - enter that and pres Return

 

That should look like:

  GNU nano 2.0.6                            File: /private/etc/hosts                                                              

##
# 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

 

Add a new line above 127.0.0.1 with your hostname:

 

  GNU nano 2.0.6                            File: /private/etc/hosts                                                              

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       Xathros-MacBook-Air
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

 

As I did above for my MBA - After that, type Ctrl-x Then y then Return

 

That should do it for you.

Link to comment

Thanks for help...sorry to be so dense;;;I get to enter password....after a warning about use of nano...but then it will not let me enter my password.,,,cursor does not move...so I assume nothing is being entered.

 

If I drop Sudo I get the code you sent without the password,,,,but can not enter line of code...so I assume not in edit mode.

Link to comment

lake113-

 

Password entry at the command line does not show anything as you type. So, when you get there, just type your admin password and press return. Idf correct, the nano editor will open, if wrong, it will say so.

 

-Xathros

Link to comment

place the cursor on the beginning of the line that reads: 127.0.0.1 localhost

 

Press Return then move the cursor up to the new blank line and start typing your new data in. Press tab between 127.0.0.1 and your hostname.

 

-Xathros

Link to comment

Yes.

 

Ctrl x says Exit (This means hold down the Ctrl key and press x) You will see a question appear in the bottom section of the terminal.

Y answers the question and says write Changes

Return Accepts the existing filename and writes out the changes and completes the process.

 

After that, you can quit the terminal and you are all set.

 

 

-Xathros

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...