Gentoo Archives: gentoo-user

From: THUFIR HAWAT <hawat.thufir@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] telnet localhost
Date: Mon, 27 Mar 2006 23:07:36
Message-Id: bf6b6d5c0603271502m22154d0eibbf6202591ec5fcd@mail.gmail.com
In Reply to: Re: [gentoo-user] telnet localhost by kashani
1 On 3/27/06, kashani <kashani-list@××××××××.net> wrote:
2 > THUFIR HAWAT wrote:
3 > > I've been rebooting :(
4 > > Is there a better way?
5 >
6 > /etc/init.d/xinetd stop
7 > /etc/init.d/xinetd start
8 >
9 > or
10 >
11 > /etc/init.d/xinetd restart
12 >
13
14 Ah, thank you :)
15
16 > > localhost ~ # date
17 > > Mon Mar 27 21:30:44 IST 2006
18 > > localhost ~ #
19 >
20 > I and many others aren't inclined to go searching through a page and
21 > half of logs ranging over two days especially when it appears that the
22 > problem has changed or been fixed.
23 >
24 > So is it working now? It appears to be doing something.
25 >
26 > kashani
27
28 Thanks all, yes, the telnet is working :)
29
30 Just a few minutes ago it wasn't, but I played around with the hosts
31 file. I don't understand why it's working now and not before because
32 I'm still using a FQDN which I was using from the beginning. However,
33 I changed the arrangement of a few things:
34
35 localhost ~ #
36 localhost ~ # telnet localhost 119
37 Trying 127.0.0.1...
38 Connected to localhost.
39 Escape character is '^]'.
40 200 Leafnode NNTP Daemon, version 1.11.3.rel running at localhost (my
41 fqdn: hawat.thufir.gmail.com)
42 ^]
43
44 telnet> quit
45 Connection closed.
46 localhost ~ # cat -n /etc/hosts
47 1 # /etc/hosts: This file describes a number of hostname-to-address
48 2 # mappings for the TCP/IP subsystem. It is mostly
49 3 # used at boot time, when no name servers are running.
50 4 # On small systems, this file can be used instead of a
51 5 # "named" name server. Just add the names, addresses
52 6 # and any aliases to this file...
53 7 # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
54 2003/08/04 20:12:25 azarah Exp $
55 8 #
56 9
57 10
58 11 127.0.0.1 localhost
59 12 127.0.0.1 hawat.thufir.gmail.com arrakis
60 localhost ~ # cat -n /etc/leafnode/config
61 1 ## Unread articles will be deleted after this many days if
62 2 ## you don't define special expire times. Mandatory.
63 3 expire = 20
64 4
65 5 ## This is the NNTP server leafnode fetches its news from.
66 6 ## You need read and post access to it. Mandatory.
67 7 server = shawnews.vc.shawcable.net
68 8
69 9
70 10 hostname = hawat.thufir.gmail.com
71 11
72 12 initialfetch = 5
73 localhost ~ # cat -n /etc/xinetd.conf
74 1 # /etc/xinetd.conf: sample configuration file for xinetd
75 2
76 3 defaults
77 4 {
78 5 only_from = localhost
79 6 instances = 60
80 7 log_type = SYSLOG authpriv info
81 8 log_on_success = HOST PID
82 9 log_on_failure = HOST
83 10 cps = 25 30
84 11 }
85 12
86 13 includedir /etc/xinetd.d
87 localhost ~ # cat -n /etc/xinetd.d/leafnode-nntp
88 1 # default: off
89 2 # description: Leafnode - accepts connections on port 119 (NNTP)
90 3
91 4 service nntp
92 5 {
93 6 socket_type = stream
94 7 protocol = tcp
95 8 wait = no
96 9 user = news
97 10 server = /usr/sbin/leafnode
98 11 disable = no
99 12 }
100 localhost ~ # date
101 Mon Mar 27 23:58:26 IST 2006
102 localhost ~ #
103
104
105
106 Thanks so much all. Pardon if I'm a bit dense with this stuff, I do
107 my best to read the manual.
108
109
110 -Thufir
111
112 --
113 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] telnet localhost Iain Buchanan <iaindb@××××××××××××.au>