kalin mintchev | 12 Jul 10:15 2005
Picon

tinydns configuration


hi all..

i'm just trying to understand better the tinydns configuration format.
if i have myhost.com and tinydns is running on the machine with that name
will this below be an effective configuration and is there a better way to
write it..

also is there a way to specify the mx preference value in tinydns...

thanks a lot...

.myhost.com::ns.myhost.com:a
.myhost.com::ns2.myhost.com:b
=ns.myhost.com:66.117.50.92
=ns2.myhost.com:66.117.50.93
+myhost.com:66.117.50.92:86400
+blackie.myhost.com:66.117.50.92
+www.myhost.com:66.117.50.92
+ftp.myhost.com:66.117.50.92
 <at> myhost.com:66.117.50.93

.hosttwo.com::ns.myhost.com:a
.hosttwo.com::ns2.myhost.com:b
+hosttwo.com:66.117.50.92:86400
+www.hosttwo.com:66.117.50.92
 <at> hosttwo.com:66.117.50.93

Jeff King | 12 Jul 11:21 2005
Picon

Re: tinydns configuration

On Tue, Jul 12, 2005 at 04:15:26AM -0400, kalin mintchev wrote:

> .myhost.com::ns.myhost.com:a
> .myhost.com::ns2.myhost.com:b

You want:
  .myhost.com::ns.myhost.com
The :a and :b are shortcuts for a.ns.myhost.com and b.ns.myhost.com; you
are specifying the full name (ns.myhost.com) instead. The lines you
wrote above would set the ttl to 'a'.

> =ns.myhost.com:66.117.50.92
> =ns2.myhost.com:66.117.50.93

As a point of style, consider giving these hosts unique machine names
and aliasing them to ns/ns2. See:
  http://cr.yp.to/djbdns/run-server.html#add-host

> +myhost.com:66.117.50.92:86400

86400 is the default ttl for A records; specifying it here does nothing.

> +blackie.myhost.com:66.117.50.92

It looks like this is your "unique name" I mentioned above. Instead of
what you have, do this:
  =blackie.myhost.com:66.117.50.92
  +ns.myhost.com:66.117.50.92
PTR resolution for that IP will then return blackie.myhost.com.

(Continue reading)

Travis Norris | 12 Jul 14:09 2005
Picon

RE: tinydns configuration


-----Original Message-----
From: kalin mintchev [mailto:kalin <at> el.net] 
Sent: 12 July, 2005 04:15
To: dns <at> list.cr.yp.to
Subject: tinydns configuration

hi all..

i'm just trying to understand better the tinydns configuration format.
if i have myhost.com and tinydns is running on the machine with that name
will this below be an effective configuration and is there a better way to
write it..

also is there a way to specify the mx preference value in tinydns...

thanks a lot...

.myhost.com::ns.myhost.com:a
.myhost.com::ns2.myhost.com:b
=ns.myhost.com:66.117.50.92
=ns2.myhost.com:66.117.50.93
+myhost.com:66.117.50.92:86400
+blackie.myhost.com:66.117.50.92
+www.myhost.com:66.117.50.92
+ftp.myhost.com:66.117.50.92
 <at> myhost.com:66.117.50.93

.hosttwo.com::ns.myhost.com:a
.hosttwo.com::ns2.myhost.com:b
(Continue reading)

George Georgalis | 13 Jul 04:25 2005

changing nameservers

Per DJB's instructions,
http://marc.theaimsgroup.com/?l=djbdns&m=103505741508241&w=2
The correct procedure to change nameservers....

it's not clear to me if it is necessary to use new nameserver names in
the transition, ie starting with:

.dom.com:ns1:$IPa
.dom.com:ns2:$IPb

can I add

.dom.com:ns1:$IPa
.dom.com:ns2:$IPb
.dom.com:ns1:$IPc
.dom.com:ns2:$IPd

to new and old servers then remove

.dom.com:ns1:$IPa
.dom.com:ns2:$IPb

or must I give the new servers a new name for the transition?

// George

--

-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george <at> galis.org

(Continue reading)

Paul Jarc | 13 Jul 04:55 2005
Picon

Re: changing nameservers

"George Georgalis" <george <at> galis.org> wrote:
> it's not clear to me if it is necessary to use new nameserver names in
> the transition

It's not.  You can just replace the old addresses with the new
addresses.  Caches will hold on to the old addresses for a while, so
you should keep tinydns running there for a while too.
http://marc.theaimsgroup.com/?l=djbdns&m=103715936406824&w=2

paul

Oscar Ricardo Silva | 14 Jul 17:43 2005
Picon

using rrdtool to graph dnscache queries?

I've been asked to use rrdtool to graph the number of queries on our 
dnscache servers.   These servers only run dnscache, not tinydns, and the 
scripts/tools I've found that setup the graphs are geared towards tinydns.

I found Nate Campi's page <http://www.campin.net/DNS/graph.html> and I'm 
probably missing something obvious but his scripts are for tinydns and/or 
BIND.

Any information would be appreciated.

Oscar

Chan Wilson | 14 Jul 18:16 2005
Picon

Re: using rrdtool to graph dnscache queries?

On  0, Oscar Ricardo Silva <osilva <at> scuff.cc.utexas.edu> inscribed onto the electric medium...
> I've been asked to use rrdtool to graph the number of queries on our 
> dnscache servers.   These servers only run dnscache, not tinydns, and the 
> scripts/tools I've found that setup the graphs are geared towards tinydns.
> 
> I found Nate Campi's page <http://www.campin.net/DNS/graph.html> and I'm 
> probably missing something obvious but his scripts are for tinydns and/or 
> BIND.
> 
> 
> Any information would be appreciated.
> 
> Oscar

http://www.confusedhacker.com/software/dnscache
http://www.confusedhacker.com/software/dnscache/example-graphs

based on Nate's work.  Uses Munin, which uses RRDtool, to graph
the following statistics:

 - Query stats (some/all of these require small patches): 
	- # of queries
	- # cached queries
	- # of NX domain responses
	- # of rejected queries
	- # of server failure responses

 - UDP / TCP active queries

 - bytes sent
(Continue reading)

Ketil Froyn | 14 Jul 19:07 2005

Re: using rrdtool to graph dnscache queries?

Oscar Ricardo Silva wrote:
> I've been asked to use rrdtool to graph the number of queries on our 
> dnscache servers.   These servers only run dnscache, not tinydns, and 
> the scripts/tools I've found that setup the graphs are geared towards 
> tinydns.
> 
> I found Nate Campi's page <http://www.campin.net/DNS/graph.html> and I'm 
> probably missing something obvious but his scripts are for tinydns 
> and/or BIND.
> 
> Any information would be appreciated.

 From http://www.campin.net/DNS/tinydns-readstats.txt:

# You can use this with dnscache now as well,just add the --dnscache
# option (/service/dnscache/log/run):
# #!/bin/sh
# exec setuidgid dnslog tinydns-readstats.pl --dnscache --log -- 
multilog  t ./main

Ketil Froyn
ketil <at> froyn.name
http://ketil.froyn.name/

Luca Morettoni | 14 Jul 18:31 2005
Picon

Re: using rrdtool to graph dnscache queries?

On Thu, Jul 14, 2005 at 10:42:43AM -0500, Oscar Ricardo Silva wrote:
> I've been asked to use rrdtool to graph the number of queries on our 
> dnscache servers.   These servers only run dnscache, not tinydns, and the 
> scripts/tools I've found that setup the graphs are geared towards tinydns.
> 
> I found Nate Campi's page <http://www.campin.net/DNS/graph.html> and I'm 
> probably missing something obvious but his scripts are for tinydns and/or 
> BIND.

I wrote tinystats, http://morettoni.net/tinystats.html (the page is
Italian only, but I'm working on translation), it run like Campi's
script, but tinystats is written in C, you can see README file in the
tarball for more info.

Here some expample:

http://www.gufi.org/stats/dns/
http://ns.tomato.it/graph/

ask me if you have problem or hints!

--

-- 
Luca Morettoni <luca <at> morettoni.net> - http://morettoni.net
GUFI staff/core member <luca <at> gufi.org> - http://gufi.org
AIP/ITCS member #2589 | FreeSBIE developer <luca <at> FreeSBIE.org>
Current system: FreeBSD 5.4-STABLE, up 2 days, 9 hrs, 31 mins, 14 secs
Luca Morettoni | 14 Jul 18:45 2005
Picon

Re: using rrdtool to graph dnscache queries?

On Thu, Jul 14, 2005 at 11:16:35AM -0500, Chan Wilson wrote:
> http://www.confusedhacker.com/software/dnscache
> http://www.confusedhacker.com/software/dnscache/example-graphs

great graph, but this need to patch djbdns.

I have a solution (experimental) that take stats info from a separate
log file and graph it with RRDTools, the script is here:
http://morettoni.net/bsd/dnscache.sh

this is an example of the graph (very low traffic machine):
http://morettoni.net/rrd-dnscache/index.html

the script except to run a separate file for stats, use this
dnscache/log/run file:

#!/bin/sh
exec setuidgid Gdnslog multilog t n3 s100000 ./main/ \
  '-*' '+* stats * * * *' =/var/log/dnscache/stats.log

--

-- 
Luca Morettoni <luca <at> morettoni.net> - http://morettoni.net
GUFI staff/core member <luca <at> gufi.org> - http://gufi.org
AIP/ITCS member #2589 | FreeSBIE developer <luca <at> FreeSBIE.org>
Current system: FreeBSD 5.4-STABLE, up 2 days, 9 hrs, 43 mins, 33 secs

Gmane