Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2010 09:07:20 +0530
From:      ashish@FreeBSD.org (Ashish SHUKLA)
To:        jaymax <jaymax36@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Telnet => servname ai_socktype error
Message-ID:  <86ocd5hnkf.fsf@chateau.d.if>
In-Reply-To: <29431829.post@talk.nabble.com> (jaymax's message of "Fri, 13 Aug 2010 11:33:32 -0700 (PDT)")
References:  <29425269.post@talk.nabble.com> <86tymyq5bq.fsf@chateau.d.if> <29431829.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

jaymax  writes:

> telnet 0 smtp
> is the same as
> telnet localhost 25=20
> or=20
> telnet localhost smtp

#v+
% getent hosts 0
0.0.0.0           0
% telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 chateau.d.if ESMTP
^]
telnet> quit
Connection closed.
#v-

I wasn't expecting this to even work. I hope this connecting to the wild-ca=
rd
address only works on the same box.

And sorry I didn't know that connecting to 0.0.0.0 actually connects to
127.0.0.1.

But its interesting how 'getent hosts' returns an IPv4 address when given a
32-bit number as hostname.

=2D-=20
Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

=E2=80=9CA designer knows he has achieved perfection not when there is noth=
ing
left to add, but when there is nothing left to take away.=E2=80=9D (Antoine=
 de
Saint-Exup=C3=A9ry)

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iQIcBAEBCgAGBQJMZg90AAoJEMdGz6nnT6SwhqkP/04RTZ+rSaD6Meo/uwB6PUO0
n9SqmYQfITu9r3pPUVeyz2xg2r3gRil25qSSTI8Rjdm20Qo7YiTxmZQ8xj5IXU8n
INklu6CsW+aEYSOn2MYCNm2R25V2UdaTivjys9px05kbCOtuEm7yMFzpOAg9hmCo
cCdV81oZgYYRrFKSBMXz75zgjCV4fynlQN/ds/lTNRWGjd4U8a3HRxixWstP7Ug/
klvbTxwuQwZu0fH6cNOMw+ROmsXD3/LdoovxbAnFlM5McUx9K4t9z/UhPGJCRznE
ejiMamvq3m0r/M2LgkkUiqpAZvoF4C7uG+HCXPLT4NZrICmMYqEp6/XzbScCoFvT
+9V71Xc36sgFWh4f4gxiF4+FjnFDHLGyFWNHFIb45ToSpq2cprGJtRYPb5qEXgPr
diyDlP8PmJmYnaNcyoZT9SUyFTVtUPmZsvZ1XpoehiJJnQValbamaGYrLafdCHMD
y3FXPy0pEA+wiWMhqrWZyxiY7FCqxi8EmNvp7iwBA9kUTVhX5hz45lcArP9qQ3h1
/lOUyWMvMY56gR6t9Y7JpOdHcWW1X9rcTiOOwY1bKxadLebaMBV75A8zmk2Or0eJ
0XgSyXSJiGHOp1Y271JBb+rLgN9fKKZMMK5EHA7RU6Dttm76gvA3Zfwt8oFx9n4X
4LK1yRAQAWSxXAexbaXe
=M1RB
-----END PGP SIGNATURE-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ocd5hnkf.fsf>