The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 Przemek SUN Solaris 4 05-26-2008 01:11 AM
How to delete the files from local host to remote host krishna176 SUN Solaris 3 03-24-2007 04:48 PM
host alias not working: host not found FunnyCats UNIX for Advanced & Expert Users 4 05-13-2005 05:36 PM
How do I ftp to an unknown host? AllyJones UNIX for Advanced & Expert Users 3 05-23-2003 05:52 AM
sendmail : 550 host unknown mrsaint UNIX for Advanced & Expert Users 29 11-13-2001 01:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-02-2005
luft luft is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 45
Exclamation unknown host

Hello all

I'm new to this site and I have to say that ,it is just awesome. I was able to get most of my questions answered by reading the archives.

I've been a UNIX programmer for a while now but new to administration.
I just installed SunOS 5.9 on my desktop ( i86pc) . Everything seems OK ,
except for hostname. When I type hostname , I get "unknown" . To fix this
I did the following.

1) Modified /etc/hosts with the following contents

127.0.0.1 localhost
198.168.10.20 mars mars.xyz.com loghost

initially this was

127.0.0.1 localhost
198.168.10.20 unknown # assigned by DHCP

2) Modified /etc/hostname.elx10 with the following contents

mars

initially this file had no contents .

3) Modified /etc/netmasks with something like this.

198.168.10.0 255.255.255.0

saved all the above files and rebooted the system using init 6 .

After the system came up , I typed hostname and I still get "unknown" .The
contents of /etc/hosts now looks like

127.0.0.1 localhost
198.168.10.20 unknown mars.xyz.com loghost

mars string was replaced by unknown in /etc/hosts .

I was expecting to see mars as the hostname . Am I missing something here .

Thanks
luft.
  #2 (permalink)  
Old 03-02-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You can't assign it that way - if you look at the original entry it shows that the IP is assigned by DHCP.

Check out Sunsolve's - manually set hostname of DHCP client

(Undo all the changes you made before starting)
  #3 (permalink)  
Old 03-04-2005
luft luft is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 45
Exclamation unknown host

Hello RTM

Firstly , thanks a lot for your quick reply.The solution worked like a charm.
A couple of followup questions though.

1) When the system boots , I get the following message followed by a warning.

Configuring IPV4 interface elx10
Starting DHCP on Primary interface
Warning : elx10 Link Failure

The system comes up and seems to work fine. Can this warning cause any
potential issues later. I'll eventually be installing Oracle10g on it .

2) When I ping this solaris system (mars.acme.int) from a different pc
(Windows 2000 Professional ) using ping mars.acme.int , I get
unknown host message. To solve this I added the following entry in
C:\winnt\system32\drivers\etc\hosts

10.96.9.221 mars.acme.int

After this, I was able to ping . My question here is , is there a way to
ping successfully without modifying hosts file on a PC.

Thanks
luft .
  #4 (permalink)  
Old 03-04-2005
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
You have to put in an entry in your DNS server.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0