Should DNS be on same server as webserver?

Steve Bertrand steve at ibctech.ca
Tue Jul 14 04:55:08 UTC 2009


Steve Bertrand wrote:

[...snip...]

> There is a single file in /etc/dnscache/root/ip, named 127.0.0.1
> 
> If you want this cache to serve internal /24 network queries:
> 
> % touch /etc/dnscache/root/ip/192.168.0

Need to add some clarification:

Adding the new empty file permits queries from the IP range specified in
the file name. It does NOT force the server to listen on an IP address
that is NOT the loopback.

To force the caching server to listen on a network-available IP address,
replace 127.0.0.1 with your NICs IP address in the following file:

/etc/dnscache/env/IP

...you'll then change /etc/resolv.conf to point to that IP address as
your primary "nameserver".

The names of the other files that are located within said "env"
directory are pretty descriptive, and may be worth looking at as well.

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090714/670c6d22/smime.bin


More information about the freebsd-questions mailing list