=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/telnet/commands.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- src/usr.bin/telnet/commands.c 2016/03/16 15:41:11 1.83 +++ src/usr.bin/telnet/commands.c 2016/05/03 02:06:54 1.84 @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.83 2016/03/16 15:41:11 krw Exp $ */ +/* $OpenBSD: commands.c,v 1.84 2016/05/03 02:06:54 awolk Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -1444,14 +1444,6 @@ char *cp2 = strchr(ep->value, ':'); gethostname(hbuf, sizeof hbuf); - - /* If this is not the full name, try to get it via DNS */ - if (strchr(hbuf, '.') == 0) { - struct hostent *he = gethostbyname(hbuf); - if (he != 0) - strncpy(hbuf, he->h_name, sizeof hbuf-1); - hbuf[sizeof hbuf-1] = '\0'; - } if (asprintf (&cp, "%s%s", hbuf, cp2) == -1) err(1, "asprintf");