Simple DNS server (was Re: [nzlug] mdadm and lvm on a live distro?)

Robin Sheat robin at kallisti.net.nz
Sun Mar 11 12:53:49 NZDT 2007


On Sunday 11 March 2007 10:41, Warren wrote:
> <flamesuit>gedit??? vi, surely? :-P</flamesuit>
He wanted a GUI tool :)

> From what I understood, this was an internal / RFC 1819 kinda install, so
> what better a way to get to learn how to do DNS, but by getting in there
> and breaking it?
Definitely true. What I do on a LAN is run pdnsd (I think that's the one), 
which is a really basic DNS cache that can source it's data from /etc/hosts. 
So I run that, point all the clients to that as their DNS server, and then 
just update /etc/hosts on that machine to add a new mapping. I think it'll do 
reverse, too, automatically. On my home LAN, I'm using DNSMasq which combines 
DHCP and DNS, so machines get the name that they're advertising, and then all 
the other machines on the network can ask for them by that without any file 
editing being involved.

> Of course, you could also look at the ability to deliberately break the
> internet (grab a hosts file that lists a whole heap of ad servers and add
> that in... That would be an interesting if not nasty exercise ...)
It wouldn't work (alas). It's them that gets to specify where their 
nameservers are, and unless they're likely to point them to you, nobody's 
going ask you where they are.

-- 
Robin <robin at kallisti.net.nz> JabberID: <eythian at jabber.kallisti.net.nz>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.linux.net.nz/pipermail/nzlug/attachments/20070311/65d5a2f1/attachment.pgp


More information about the NZLUG mailing list