I want to talk to DNS directly
Kevin Darcy
kcd at daimlerchrysler.com
Thu Jul 5 18:19:25 UTC 2001
Brad Knowles wrote:
> At 6:12 PM +0000 7/4/01, M. Richardson wrote:
>
> > I'm just working on something here for a friend of mine (how suspicious does
> > that sound ? :) and I'm wondering how I can directly talk to a DNS server ?
>
> You can use tools like dig, which make use of the resolver
> library. Alternatively, you can write programs in C, or Perl, or
> some other language that will give you direct access to the resolver
> library.
>
> > To elaborate, I want to be able to do something like :
> >
> > telnet ns1.nameserver.com 53
> > query="nameserver.com"
>
> Sorry, it doesn't work like this.
>
> > Any light anybody can shed on this would be REALLY appreciated ?
>
> Read the _DNS and BIND_ book. It will give you more information
> on the DNS packet format. However, I would like to meet the wizard
> that can generate UDP and TCP packets that would use this protocol,
> directly from the command-line.
Nah, even if one were a wizard, one would have to toggle telnet binary mode on,
and the nameserver is going to choke on the negotiation sequence for that...
- Kevin
More information about the bind-users
mailing list