Re: FQDN, hostname and telnet



On Mon, Aug 21, 2006 at 03:08:44PM -0700, Patrick B. O'Brien wrote:

/etc/hosts should say:

127.0.0.1 geidiprime.servebeer.com

No, it should not. 127.0.0.1 should always be at least:

127.0.0.1 localhost.localdomain localhost

Otherwise certain long-standing Unix traditions will break, with dire
consequences.

You can add other things to that line, but it's not a good idea.

Instead add a new line with your NIC's IP address pointing to your
FQDN, followed by the hostname. e.g:

192.168.1.4 geidiprime.servebeer.com geidiprime

The FQDN must agree exactly with the host name as shown in
/etc/sysconfig/network. The OP's list of his /etc/hosts showed that it
was different: "servebeer.com geidiprime localhost". So
"servebeer.com", "geidiprime", or "localhost" should have worked, but
not geidiprime.servebeer.com, which is what he tried.

However, domain name resolution is not the only problem. When the OP
did "telnet geidiprime", the host name was successfully resolved. The
connection was refused, which suggests that the telnet server is not
set up correctly. Possibly it needs to be turned on for xinetd's
benefit. Or possibly it is only listening on the NIC, not on the
loopback device (127.0.0.1).






-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of
hawat.thufir@xxxxxxxxx
Sent: Monday, August 21, 2006 3:04 PM
To: fedora-list@xxxxxxxxxx
Subject: FQDN, hostname and telnet

Why can't I telnet to "geidiprime.servebeer.com", which is my FQDN?


[thufir@geidiprime ~]$
[thufir@geidiprime ~]$ telnet localhost nntp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 Leafnode NNTP Daemon, version 1.11.5 running at servebeer.com (my
fqdn:
geidiprime.servebeer.com)
^]

telnet> quit
Connection closed.
[thufir@geidiprime ~]$ telnet geidiprime
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[thufir@geidiprime ~]$ telnet geidiprime.servebeer.com
telnet: geidiprime.servebeer.com: Name or service not known
geidiprime.servebeer.com: Unknown host
[thufir@geidiprime ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 servebeer.com geidiprime localhost

[thufir@geidiprime ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=geidiprime.servebeer.com
[thufir@geidiprime ~]$ date
Mon Aug 21 23:02:17 IST 2006
[thufir@geidiprime ~]$




thanks,


Thufir

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

--

Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB

Attachment: pgpp9b8rSkuxH.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: Multiple Tunnel question - (client part)
    ... Ok,thank you now the tunnel between linux2 and linux1 works. ... Connected to localhost. ... PCcygwin% telnet linux1 2200 ... telnet: Unable to connect to remote host: Connection refused ...
    (comp.security.ssh)
  • Re: inetd & telnet
    ... new thing I learned about the tcpd = tcp wrappers. ... if I telnet to localhost I get a connection ...
    (comp.unix.solaris)
  • Mac OS X & Darwin/BSD vulnerable to telnetd overflow
    ... chrome% ./SPtelnetAYT localhost ... Connected to remote host... ... Sending telnet options... ... Connection closed. ...
    (Bugtraq)
  • Re: Solaris 2.6, 7, 8
    ... telnet> environ define TTYPROMPT abcdef ... Connected to localhost. ... > telnet> environ define TTYPROMPT abcdef ... > Connected to localhost. ...
    (Bugtraq)
  • Re: how to enable localhost and apache in slackware.
    ... application achieves connectivity to localhost once you ping it? ... system using telnet or lynx I get access denied. ... Do you have a restrictive firewall interfering with packet flow? ... Have you configured your web server to service requests from the loopback ...
    (comp.os.linux.misc)