LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2008, 02:33 AM   #1
DMeerholz
LQ Newbie
 
Registered: Jun 2007
Posts: 22

Rep: Reputation: 15
/etc/hosts My unqualified host name?


Hi,

Can someone help me out with this please... the box I am working on has static ip 192.168.3.15, hostname = DenisInsure

The /etc/hosts file looks like this:

::1 localhost:localdomain localhost
192.168.3.15 DenisInsure DenisInsure
120.0.0.1 localhost localhost

But when starting sendmail it takes 2 or 3 minutes, the log has the following error:
My unqualified host name (DenisInsure) unknown; sleeping for retry
unable to qualify my own domain name (DenisInsure) -- using short name...
It does this 3 times, and finally gives up.

I figured out that if I removed this line from /etc/hosts
192.168.3.15 DenisInsure DenisInsure
Sendmail started quick and everything worked fine... or so i thought.

The next day I had to telnet into the box (... I know telnet isn't good, but I am new here and they dont listen to me ...) anyways, I couldnt telnet in...

[root@damian ~]# telnet 192.168.3.15
Trying 192.168.3.15...
Connected to insurance (192.168.3.15).
Escape character is '^]'.
getaddrinfo: localhost: Success
Connection closed by foreign host.
[root@damian ~]#

When I put that line back into /etc/hosts telnet works fine... but then obviously sendmail doesn't... anyone know whats going on?
 
Old 02-01-2008, 02:54 AM   #2
DMeerholz
LQ Newbie
 
Registered: Jun 2007
Posts: 22

Original Poster
Rep: Reputation: 15
ok, dont worry...

changed
192.168.3.15 DenisInsure DenisInsure
to
192.168.3.15 DenisInsure xyz.co.za

and they both work.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp between 2 hosts from a 3rd host noir911 Linux - Networking 3 05-12-2006 05:55 AM
host on network added to /etc/hosts but cannot ftp to it Singist Linux - Networking 2 03-12-2006 12:13 PM
Adding a host alias in /etc/hosts tortle SUSE / openSUSE 3 12-05-2005 10:53 AM
HOST name in HOSTS file (127.0.0.1) fipeso Linux - Networking 1 05-05-2005 06:22 AM
Adding a host to /etc/hosts kzazula Linux - Newbie 1 10-25-2003 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration