FQDN, hostname and telnet

Charles Curley charlescurley at charlescurley.com
Mon Aug 21 23:17:01 UTC 2006


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 at redhat.com
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of
> hawat.thufir at gmail.com
> Sent: Monday, August 21, 2006 3:04 PM
> To: fedora-list at redhat.com
> Subject: FQDN, hostname and telnet
> 
> Why can't I telnet to "geidiprime.servebeer.com", which is my FQDN?
> 
> 
> [thufir at geidiprime ~]$
> [thufir at 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 at geidiprime ~]$ telnet geidiprime
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> [thufir at geidiprime ~]$ telnet geidiprime.servebeer.com
> telnet: geidiprime.servebeer.com: Name or service not known
> geidiprime.servebeer.com: Unknown host
> [thufir at 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 at geidiprime ~]$ cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=geidiprime.servebeer.com
> [thufir at geidiprime ~]$ date
> Mon Aug 21 23:02:17 IST 2006
> [thufir at geidiprime ~]$
> 
> 
> 
> 
> thanks,
> 
> 
> Thufir
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060821/ee1b4f98/attachment-0001.sig>


More information about the fedora-list mailing list