Posts Tagged ‘DNS’

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:

dig -x 69.69.69.69

;; ANSWER SECTION:
69.69.69.69.in-addr.arpa. 86400 IN PTR the-coolest-ip-on-the-net.com.

Monday, February 15th, 2010 at 22:04 | 1 comment
Categories: DNS
Tags:

Take some consolation from the fact that she is now unemployed.

Friday, December 4th, 2009 at 09:39 | 0 comments
Categories: dnsbook
Tags:

Chris also appears to be avidly following the IBM/Lotus DNS saga, and writes that there is news! (BTW, my joke plugin didn't detect this change, because I didn't expect it to happen any more. )
The news? They've managed to get enough knowhow together to replace the whole resource record:

dig @cmtu.mt.ns.els-gms.att.net. developer.lotus.com

;; ANSWER SECTION:
developer.lotus.com. [...]

Saturday, October 10th, 2009 at 12:14 | 0 comments
Tags: , ,

I think I speak on behalf of Volker and Stefan, when I say that we have little hope that IBM/Lotus will ever fix what they buggered up. I for one, don't want to keep checking.
While waiting for a phone call, I whipped up a little Nagios / Icinga plugin to monitor the "progress" of the [...]

Friday, October 9th, 2009 at 21:41 | 2 comments
Tags: ,

The Conficker worms I've been trying to chase down since late August have been eradicated. At least, so I thought.
As a matter of curiosity, I'd set up DNS query logging on our internal root servers, not really expecting anything untoward to turn up. Boy, was I wrong: it turns out, that we had a [...]

Monday, September 21st, 2009 at 19:52 | 0 comments
Categories: DNS, Software

libconfig may be yet another configuration library, but I gave it a once-over anyway, and it is good. libconfig calls itself "a simple library for processing structured configuration files", with a "file format which is much more readable than XML". The file format really is readable, as the following short example shows:

# authenticator

name = "JP";
enabled [...]

Thursday, September 17th, 2009 at 21:58 | 3 comments
Categories: Linux, MacOSX, Software, dnsbook