Archive for the ‘DNS’ Category

Sam Trenholme of MaraDNS fame has updated his "world's smallest useful DNS server". It is so small, that the code fits right here:

/*Placed in the public domain by Sam Trenholme*/
#include <arpa/inet.h>
#include <string.h>
#include <stdint.h>
#define Z struct sockaddr
#define Y sizeof(d)
int main(int a,char **b){uint32_t i;char q[512]
,p[17]="\xc0\f\0\x01\0\x01\0\0\0\0\0\x04";if(a>
1){struct sockaddr_in d;socklen_t f=511;bzero(&
d,Y);a=socket(AF_INET,SOCK_DGRAM,0);*((uint32_t
*)(p+12))=inet_addr(b[1]);d.sin_family=AF_INET;
d.sin_port=htons(53);bind(a,(Z*)&d,Y);for(;;){i
=recvfrom(a,q,255,0,(Z*)&d,&f);if(i>9&&q[2]>=0)
{q[2]|=128;q[11]?q[3]|=4:1;q[7]++;memcpy(q+i,p,
16);sendto(a,q,i+16,0,(Z*)&d,Y);}}}return 0;}

Compile it (cc nanodns.c) and run it (./a.out 1.2.3.4) [...]

Thursday, August 5th, 2010 at 15:04 | 0 comments
Categories: CLI, DNS
Tags:

I see Martin still appreciates my book Alternative DNS Servers. He liked dnsmasq and now it is Unbound.

Sunday, July 25th, 2010 at 13:48 | 0 comments
Categories: DNS, dnsbook
Tags:

Snom make a range of very good IP telephones that can be provisioned in a variety of ways. The method I prefer is DHCP with an HTTP server, shown here to provision a range of Snom 370 phones.

Snom describes how to use dhcpd to provision its phones, but I need to do the same with [...]

Thursday, July 22nd, 2010 at 12:09 | 0 comments
Categories: DNS, Voip
Tags: , , ,

John Collins reviewed my book Alternative DNS Servers in the latest UKUUG newsletter.
The book is in three sections. In the first section DNS is fully described, including some of its history. In the second and largest section the various servers are presented in microscopic detail apart from the Microsoft proprietary DNS servers which are an [...]

Monday, June 14th, 2010 at 09:52 | 2 comments
Categories: DNS, dnsbook
Tags:
Monday, May 24th, 2010 at 17:04 | 0 comments
Categories: DNS
Tags:

The German DNS seems to be is down:
$ dig de. ns

;; ANSWER SECTION:
de. 85894 IN NS f.nic.de.
de. [...]

Wednesday, May 12th, 2010 at 14:22 | 7 comments
Categories: DNS
Tags:

I'm succumbing to comments and queries on whether the PowerDNS DNS name server could be backed by a CouchDB database. It can.
I'm not going to delve too deeply into PowerDNS here because I discuss it very thoroughly in chapter 6 of my book Alternative DNS Servers. So, in other words, if you're not familiar with [...]

Wednesday, May 5th, 2010 at 12:07 | 0 comments
Categories: DNS, Database, NoSQL, dnsbook

I'm revisiting the proof of concept I whipped up the other day (inspired by this) regarding storing DNS zone data in a CouchDB database, because I was perverting the concept of a document database, using my old-school relational model: I had one document per DNS resource record.
What I should have done in the first place, [...]

Monday, May 3rd, 2010 at 13:07 | 5 comments
Categories: DNS, Database, NoSQL
Tags: