From owner-freebsd-questions@FreeBSD.ORG Tue Oct 25 13:33:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9340816A41F for ; Tue, 25 Oct 2005 13:33:16 +0000 (GMT) (envelope-from mohansingh68@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3850943D45 for ; Tue, 25 Oct 2005 13:33:16 +0000 (GMT) (envelope-from mohansingh68@gmail.com) Received: by zproxy.gmail.com with SMTP id i28so870898nzi for ; Tue, 25 Oct 2005 06:33:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Q5N5PLi8vVj9QqgijlAyE4Tw+xfORNaUKFSGFjvL01wxyTw5JJEn/DlLtiWQf1pQrrAYvYSWvcJX+i5Z5TolTqbHQrRrXm+Ypgz77AFrrqmsXedhhUeZhghSBSbmsvHiLNTdScf/yWDVQ9tu49LxNaP/f4q5W/5TLgJX3p/Z9qo= Received: by 10.36.250.79 with SMTP id x79mr7179872nzh; Tue, 25 Oct 2005 06:33:15 -0700 (PDT) Received: by 10.36.251.7 with HTTP; Tue, 25 Oct 2005 06:33:15 -0700 (PDT) Message-ID: <48d803190510250633k93e3934n7f1dd2bca493e21e@mail.gmail.com> Date: Tue, 25 Oct 2005 06:33:15 -0700 From: Mohan Singh To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: telnetting/netcatting into a DNS server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 13:33:16 -0000 Whenever I need to test a mail/ssh/web server, I usually just telnet or nc into the appropriate port, i.e.: $ echo "GET / " |nc -v yahoo.com 80 $ nc -v localhost 22 Connection to localhost 22 port [tcp/ssh] succeeded! SSH-1.99-OpenSSH_4.2 How would I connect to a nameserver and talk to it so I can know it is working? I get as far as connecting to the port, but I don't know how to make it send back anything meaningful.