Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rndc protocol

205 views
Skip to first unread message

Matthew Horsfall (alh)

unread,
Oct 4, 2012, 9:29:19 AM10/4/12
to bind-...@lists.isc.org
Hello,

I was curious if the underlying protocol used by the rndc command was well
documented and if writing clients against it (rather than using the rndc
utility) was advisable or not.

Thanks,

-- Matthew Horsfall (alh)

Carsten Strotmann

unread,
Oct 5, 2012, 5:38:25 AM10/5/12
to Matthew Horsfall (alh), bind-...@lists.isc.org
Hello Matthew,

"Matthew Horsfall (alh)" <mhor...@dyn.com> writes:


> I was curious if the underlying protocol used by the rndc command was
> well documented and if writing clients against it (rather than using
> the rndc utility) was advisable or not.

I'm not aware of extra documentation, but I know developers that have
successfully read the BIND source code and were able to build their own
tools that use the rndc channel. And the protocol seems to be pretty
stable.

-- Carsten

Andrew Latham

unread,
Oct 5, 2012, 10:45:47 AM10/5/12
to Matthew Horsfall (alh), bind-...@lists.isc.org
On Thu, Oct 4, 2012 at 9:29 AM, Matthew Horsfall (alh)
<mhor...@dyn.com> wrote:
> Hello,
>
> I was curious if the underlying protocol used by the rndc command was well
> documented and if writing clients against it (rather than using the rndc
> utility) was advisable or not.
>
> Thanks,
>
> -- Matthew Horsfall (alh)

A quick search shows that the source is easily read. For example
http://stuff.mit.edu/afs/sipb/machine/charon3/src/bind-9.6-ESV-R5-P1/bin/rndc/rndc.c
uses isc_socket and checks the underlying protocols during connection.
ie... v6 or v4, UDP or TCP...


--
~ Andrew "lathama" Latham lat...@gmail.com http://lathama.net ~

Matthew Horsfall (alh)

unread,
Oct 8, 2012, 8:36:50 AM10/8/12
to Andrew Latham, bind-...@lists.isc.org
On 10/05/2012 10:45 AM, Andrew Latham wrote:
> On Thu, Oct 4, 2012 at 9:29 AM, Matthew Horsfall (alh)
> <mhor...@dyn.com> wrote:
>> Hello,
>>
>> I was curious if the underlying protocol used by the rndc command was well
>> documented and if writing clients against it (rather than using the rndc
>> utility) was advisable or not.
>>
>> Thanks,
>>
>> -- Matthew Horsfall (alh)
>
> A quick search shows that the source is easily read. For example
> http://stuff.mit.edu/afs/sipb/machine/charon3/src/bind-9.6-ESV-R5-P1/bin/rndc/rndc.c
> uses isc_socket and checks the underlying protocols during connection.
> ie... v6 or v4, UDP or TCP...
>
>

Thanks.

I realize that the source is readable, but I was asking for actual documentation
which it appears does not exist or is not public if it is.

In any event, I'm already underway using the source code as a driver for what I
need.

Cheers,

-- Matthew Horsfall (alh)

Matthew Horsfall (alh)

unread,
Jan 10, 2013, 5:14:46 PM1/10/13
to bind-...@lists.isc.org
> Hello,
>
> I was curious if the underlying protocol used by the rndc command was
> well
> documented and if writing clients against it (rather than using the
> rndc
> utility) was advisable or not.
>
> Thanks,
>
> -- Matthew Horsfall (alh)

I've written a Perl library to speak the RNDC protocol (to some degree).

http://blogs.perl.org/users/matthew_horsfall/2013/01/announcing-netrndc---communicate-with-bind-through-perl.html

https://metacpan.org/module/Net::RNDC
0 new messages