Telnet => servname ai_socktype error

jaymax jaymax36 at gmail.com
Sat Aug 14 04:34:02 UTC 2010


TY Dan, 
I ran the tcpdump on the lo0 interface, ran telnet as shown below,
interestingly only the "telnet localhost 25"  produced an output (which I
cannot fully decipher, except for the acknowledgment "hand shake" and the
checksum, but can't figure out the "drop" or closure event
Oddly, "telnet localhost smtp" and "telnet localhost " produced nothing in
the dumpfile, just the "localhost: servname not supported for ai_socktype"
to stdout

[1]

mach# telnet localhost
> localhost: servname not supported for ai_socktype
> 

[2]

mach# telnet localhost smtp
> localhost: servname not supported for ai_socktype
> 

[3]

mach# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Connection closed by foreign host.
> 

Only [3] produced a tcpdump output, shown as follows ==>



> mach# tcpdump -i lo0 -vvv >> tcpdumpfile
> 
> Ctrl C
> 7 packets captured
> 7 packets received by filter
> 0 packets dropped by kernel
> 


20:31:41.366749 IP (tos 0x10, ttl 64, id 11415, offset 0, flags [DF], proto
TCP (6), length 60) localhost.54336 > localhost.25: S, cksum 0x5c3a
(correct), 1583394158:1583394158(0) win 65535 <mss 16344,nop,wscale
3,sackOK,timestamp 10736343 0>


20:31:41.366815 IP (tos 0x0, ttl 64, id 11416, offset 0, flags [DF], proto
TCP (6), length 60) localhost.25 > localhost.54336: S, cksum 0xc615
(correct), 2069694587:2069694587(0) ack 1583394159 win 65535 <mss
16344,nop,wscale 3,sackOK,timestamp 394525367 10736343>


20:31:41.366836 IP (tos 0x10, ttl 64, id 11417, offset 0, flags [DF], proto
TCP (6), length 52) localhost.54336 > localhost.25: ., cksum 0x0c01
(correct), 1:1(0) ack 1 win 8960 <nop,nop,timestamp 10736344 394525367>


20:31:41.398688 IP (tos 0x0, ttl 64, id 11421, offset 0, flags [DF], proto
TCP (6), length 52) localhost.25 > localhost.54336: F, cksum 0x0be1
(correct), 1:1(0) ack 1 win 8960 <nop,nop,timestamp 394525398 10736344>


20:31:41.398731 IP (tos 0x10, ttl 64, id 11422, offset 0, flags [DF], proto
TCP (6), length 52) localhost.54336 > localhost.25: ., cksum 0x0bc2
(correct), 1:1(0) ack 2 win 8960 <nop,nop,timestamp 10736375 394525398>


20:31:41.399162 IP (tos 0x10, ttl 64, id 11423, offset 0, flags [DF], proto
TCP (6), length 52) localhost.54336 > localhost.25: F, cksum 0x0bc0
(correct), 1:1(0) ack 2 win 8960 <nop,nop,timestamp 10736376 394525398>


20:31:41.399191 IP (tos 0x0, ttl 64, id 11424, offset 0, flags [DF], proto
TCP (6), length 52) localhost.25 > localhost.54336: ., cksum 0x0bc0
(correct), 2:2(0) ack 2 win 8959 <nop,nop,timestamp 394525399 10736376>

Hope you can see something in there, Thanks again

PS: Couldn't find anything in the /var/log files either
Shouldn't the telnet localhost generate a connection?

------------------------------------------


Dan Nelson wrote:
> 
> In the last episode (Aug 12), jaymax said:
>> 
>> FreeBSD my.domain.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1
>> 08:49:13
>> UTC 2009     
>> root at walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>> 
>> Testing a Qmail SMTP installation with Telnet
>> 
>> (normally use SSH for networking)
>> 
>> Temporary Telnet set up for testing ==>
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> 
>> Server set up ==>
>> 
>> % telnet localhost 25
>> 	   Trying 127.0.0.1...
>> 	   telnet: connect to address 127.0.0.1: Connection reset by peer
> 
> That sounds like you connected but qmail crashed or otherwise uncleanly
> closed the socket.  Does a tcpdump on lo0 show any interesting activity
> when
> you try that command?
> 
> -- 
> 	Dan Nelson
> 	dnelson at allantgroup.com
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
> 
> 

-- 
View this message in context: http://old.nabble.com/Telnet-%3D%3E-servname-ai_socktype-error-tp29425269p29434929.html
Sent from the freebsd-questions mailing list archive at Nabble.com.



More information about the freebsd-questions mailing list