On 3/27/06, John Jolet <[EMAIL PROTECTED]> wrote:
..
> > As root a netstat -ptln might tell you if xinetd is holding the
> > port, but since xinetd is a superdaemon of sorts it might not
> > show
> > it on the port unless there is a working connection... I'm not
> > sure
> > and have no desire to install xinetd to find out. :)
>
> as long as it's configured to not be turned off, xinetd will hold
> the
> port open.  I use netstat -a|grep LISTEN and it should show
> up....


Based on the /var/log/messages I don't think I have the FQDN correctly set.



localhost ~ #
localhost ~ # netstat -ptln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address        
State       PID/Program name
localhost ~ # netstat -a|grep LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     12805  /dev/log
unix  2      [ ACC ]     STREAM     LISTENING     13510  @/tmp/dbus-MfRsQwACax
unix  2      [ ACC ]     STREAM     LISTENING     13937  /tmp/mapping-thufir
unix  2      [ ACC ]     STREAM     LISTENING     13745  @/tmp/fam-thufir-
unix  2      [ ACC ]     STREAM     LISTENING     13478  /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     13516 
/tmp/ssh-Nyrxjn9813/agent.9813
unix  2      [ ACC ]     STREAM     LISTENING     13541 
/tmp/orbit-thufir/linc-2672-0-12dd6d02390d6
unix  2      [ ACC ]     STREAM     LISTENING     13547 
/tmp/orbit-thufir/linc-2655-0-79381fe856347
unix  2      [ ACC ]     STREAM     LISTENING     13693  /tmp/.ICE-unix/9813
unix  2      [ ACC ]     STREAM     LISTENING     13702 
/tmp/keyring-xfFTos/socket
unix  2      [ ACC ]     STREAM     LISTENING     13714 
/tmp/orbit-thufir/linc-267a-0-2cecba2f71d48
unix  2      [ ACC ]     STREAM     LISTENING     13736 
/tmp/orbit-thufir/linc-267c-0-223b7714985c4
unix  2      [ ACC ]     STREAM     LISTENING     13781 
/tmp/orbit-thufir/linc-2697-0-3e87c9607e27b
unix  2      [ ACC ]     STREAM     LISTENING     13806 
/tmp/orbit-thufir/linc-269a-0-4fbf78acead8f
unix  2      [ ACC ]     STREAM     LISTENING     13832 
/tmp/orbit-thufir/linc-269c-0-631b6b07a050a
unix  2      [ ACC ]     STREAM     LISTENING     13860 
/tmp/orbit-thufir/linc-269e-0-461554275a402
unix  2      [ ACC ]     STREAM     LISTENING     13889 
/tmp/orbit-thufir/linc-26a2-0-3d68ff798e2f0
unix  2      [ ACC ]     STREAM     LISTENING     13925 
/tmp/orbit-thufir/linc-26a8-0-74ff7027c3be2
unix  2      [ ACC ]     STREAM     LISTENING     13969 
/tmp/orbit-thufir/linc-26bf-0-48e175a7e63a
unix  2      [ ACC ]     STREAM     LISTENING     14103 
/tmp/orbit-thufir/linc-26ca-0-493a1c81bc014
unix  2      [ ACC ]     STREAM     LISTENING     14120 
/tmp/orbit-thufir/linc-26d1-0-415c7c152252c
localhost ~ # cat -n /etc/xinetd.conf
     1  # /etc/xinetd.conf: sample configuration file for xinetd
     2
     3  defaults
     4  {
     5          only_from      = localhost
     6          instances      = 60
     7          log_type       = SYSLOG authpriv info
     8          log_on_success = HOST PID
     9          log_on_failure = HOST
    10          cps            = 25 30
    11  }
    12
    13  includedir /etc/xinetd.d
localhost ~ # cat -n /etc/xinetd.d/leafnode-nntp
     1  # default: off
     2  # description: Leafnode - accepts connections on port 119 (NNTP)
     3
     4  service nntp
     5  {
     6          socket_type = stream
     7          protocol    = tcp
     8          wait        = no
     9          user        = news
    10          server      = /usr/sbin/leafnode
    11          disable     = no
    12  }
localhost ~ # cat -n /etc/leafnode/config
     1  ## Unread articles will be deleted after this many days if
     2  ## you don't define special expire times. Mandatory.
     3  expire = 20
     4
     5  ## This is the NNTP server leafnode fetches its news from.
     6  ## You need read and post access to it. Mandatory.
     7  server = shawnews.vc.shawcable.net
     8
     9
    10  hostname = hawat.thufir.invalid
    11
    12  initialfetch = 5
localhost ~ # date
Mon Mar 27 21:35:53 IST 2006
localhost ~ # cat -n /etc/hosts
     1  # /etc/hosts:  This file describes a number of hostname-to-address
     2  #              mappings for the TCP/IP subsystem.  It is mostly
     3  #              used at boot time, when no name servers are running.
     4  #              On small systems, this file can be used instead of a
     5  #              "named" name server.  Just add the names, addresses
     6  #              and any aliases to this file...
     7  # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
     8  #
     9
    10
    11  127.0.0.1          localhost
    12  127.0.0.1          hawat.thufir.invalid hawat arrakis
localhost ~ # date
Mon Mar 27 21:38:41 IST 2006
localhost ~ #




thanks,

Thufir

-- 
gentoo-user@gentoo.org mailing list

Reply via email to