Simple DNS server (was Re: [nzlug] mdadm and lvm on a live
distro?)
Martin D Kealey
martin at kurahaupo.gen.nz
Thu Mar 15 16:31:34 NZDT 2007
On Sun, 11 Mar 2007, Warren wrote:
> But - I can see major issues in trying to kill all adservers (eg.
> ads.inl.co.nz) - especially seeing as you can't just pull an entire zone
> any more.
Make singleton zones for each address you want to kill, even if it's inside
someone else's zone.
In named.conf:
"ads.inl.co.nz" { type master; file "go-away.zone"; };
In go-away.zone:
@ 999999999 IN SOA @ root 1 1 1 1 1 1
@ 999999999 IN NS my.local.name.server. ; don't forget the trailing dot
@ 999999999 IN A 192.168.255.99
In apache.conf:
<VirtualHost 192.168.255.99:80>
Alias / /dev/null # Or something like that... will need tweaking
</VirtualHost>
You only have to add one line for each one in named.conf, the rest just has
to be done once.
-Martin
More information about the NZLUG
mailing list