unknown host


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unknown host
# 1  
Old 03-02-2005
Error 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  
Old 03-02-2005
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  
Old 03-04-2005
Error 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  
Old 03-04-2005
You have to put in an entry in your DNS server.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Sendmail - relay Host unknown since adding dns

Hi ever since we´ve added the server in DNS, sendmail stopped working, but everything seems to be configured properly although in the mail logs we see: Jul 10 16:52:58 itc01 sendmail: t6AEqrHT005593: from=root, size=6, class=0, nrcpts=1, msgid=<201507101452.t6AEqrHT005593@itc01.headquarter.tmm>,... (3 Replies)
Discussion started by: fretagi
3 Replies

2. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

3. Solaris

Need to recover/move diskgroup from failed host to another host

Hi All I am having VxVm on two Solaris hosts. host1 is using disk group dgHR. right now this server went down due to hardware fault. Not I need to import this dgHR into host2 server. Please let me know the procedure for the same. (1 Reply)
Discussion started by: amity
1 Replies

4. Solaris

Classic: sendmail[pid]: My unqualified host name (hostname) unknown

Hi all, I'd like to disable sendmail permanently on my "new" 220R with freshly installed SunOS 5.10 because it prints annoying messages to the system console. Also I'm interested in how to fix the actual problem with unqualified host name. My unqualified host name (hostname) unknown; sleeping... (2 Replies)
Discussion started by: pseudocoder
2 Replies

5. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

6. Shell Programming and Scripting

running commands to remote host from centralized host

Gurus/Experts We have a centralized UNIX/Solaris server from where we can actually ssh to all other UNIX/Solaris servers...I need to write a script that reside on this centerlized server and do FileSystem monitoring (basically run df -h or -k) of other remote servers and then send an email to me... (6 Replies)
Discussion started by: anjum.suri
6 Replies

7. Solaris

PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello, I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems: 1. When I execute the command ping, I get weird results: bash-3.00$ usr/sbin/ping localhost ... (4 Replies)
Discussion started by: Przemek
4 Replies

8. UNIX for Advanced & Expert Users

How do I ftp to an unknown host?

after ftp. ftp.umass.edu, I get "UNKNOWN HOST" There is no prompt for username. What do I do so that I can ftp files out? Or even email, to an unknown host. (3 Replies)
Discussion started by: AllyJones
3 Replies

9. UNIX for Advanced & Expert Users

sendmail : 550 host unknown

Hi I try to configure snedmail as smtp for my solaris box. if the useres are local there's no problem everything's working fine, but is it outside, sendmail says it could find the host. why?! all other tools find diffrent host? Could anyone tell me how I set up an easy mx ? So I test it with... (29 Replies)
Discussion started by: mrsaint
29 Replies

10. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies
Login or Register to Ask a Question