Re: FQDN, hostname and telnet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgpqzN0JYAY0y.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux