Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2005 17:38:03 +0400
From:      Igor Robul <igorr@speechpro.com>
To:        Mohan Singh <mohansingh68@gmail.com>,  freebsd-questions@freebsd.org
Subject:   Re: telnetting/netcatting into a DNS server?
Message-ID:  <435E353B.4070609@speechpro.com>
In-Reply-To: <48d803190510250633k93e3934n7f1dd2bca493e21e@mail.gmail.com>
References:  <48d803190510250633k93e3934n7f1dd2bca493e21e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mohan Singh wrote:

>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.
>  
>
if you wish "know" your nameserver works, then
nslookup - your.server.ip

then try resolve some hostname/ip

or

host _name_to_resolve_ your.server.ip




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?435E353B.4070609>