Re: FQDN, hostname and telnet

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

 



On Mon, 21 Aug 2006, Charles Curley wrote:
[...]
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.
[...]

It works sufficiently so far. I'm curious about your mention of NIC's and IP addresses. In my situation I connect to a cable modem. However, that connection is wireless/wi-fi (802.11b router, 802.11g adapter). The adapter is an Asus WL-330g which connects into the RJ-45 type ethernet adapter. As far as linux is concerned, the connection looks like a wired connection. Of course, the router uses DHCP. So, the IP address for the NIC will move, being dynamic. The eth0 NIC has dhcp enabled.

here's what I have:

[thufir@arrakis ~]$
[thufir@arrakis ~]$ hostname
arrakis.homelinux.org
[thufir@arrakis ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=arrakis.homelinux.org

[thufir@arrakis ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1               arrakis.homelinux.org localhost


[thufir@arrakis ~]$ whoami
thufir
[thufir@arrakis ~]$ su -
Password:
[root@arrakis ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:EC:1C:8E:11
          inet addr:192.168.2.145  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::216:ecff:fe1c:8e11/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1500 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:942682 (920.5 KiB)  TX bytes:101520 (99.1 KiB)
          Interrupt:185 Base address:0xb000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:714 errors:0 dropped:0 overruns:0 frame:0
          TX packets:714 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:376666 (367.8 KiB)  TX bytes:376666 (367.8 KiB)

[root@arrakis ~]# exit
logout

[thufir@arrakis ~]$ date
Tue Aug 22 04:12:32 IST 2006
[thufir@arrakis ~]$
[thufir@arrakis ~]$
[thufir@arrakis ~]$
[thufir@arrakis ~]$
[thufir@arrakis ~]$



thanks,


Thufir


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux