[H-GEN] Stopping nameserver lookup for local subnet
David Jericho
davidj at webmatchit.com.au
Wed Feb 14 00:48:46 EST 2001
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
On Wed, Feb 14, 2001 at 03:13:19PM +1000, Jason Henry Parker wrote:
> What needs to be done to fix this, IMHO is for the masq box (or the
> other, it doesn't really matter much) to be running BIND or some
> other DNS server which will be authoritative for the local zone.
The easiest solution is in the file, nsswitch.conf in the /etc directory.
What you're looking for, is the line that begins with
hosts:
At the moment, it's probably reading something like
hosts: dns nisplus nis files
You want it to read
hosts: files dns
Meaning, look up the /etc/hosts file first, then if it doesn't exist, lookup
via the dns service.
But as Jason said, a proper DNS server is probably the way to go, and it also
speeds up offsite name resolution because of its local cache.
There are a few options, the ISC BIND, djb-dns, and Dents.
ISC BIND: The defacto standard.
http://www.isc.org/products/BIND/
djb-dns: Never run it, but have heard glowing reports from those who do.
http://cr.yp.to/djbdns.html
Dents: Still beta. A lot of interesting ideas.
http://www.dents.org/
There are probably a few others, but all of the above have rpms, and
while I couldn't find the debs in the debian source lists for djb-dns and
Dents, I'm sure they could be found somewhere.
--
David Jericho, Systems Administrator
WebMatchIT Interactive Marketing
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list