[OPEN-ILS-DEV] Patch dnsmasq documentation in README

Dan Scott dan at coffeecode.net
Tue Nov 30 22:36:53 EST 2010


On Tue, Nov 30, 2010 at 12:32:34PM -0500, Michael J. Giarlo wrote:
> Attached is a patch that fixes the instructions for dnsmasq.conf in
> trunk's README.  Only verified as working on Ubuntu (Lucid, Maverick)
> -- could cause problems in other versions of dnsmasq?

On Fedora, I added:

address=/localhost/127.0.0.1
address=/public.localhost/127.0.1.2
address=/private.localhost/127.0.1.3

... to assign the specific IP addresses to the local hostnames. (Read
on, below, though).

> Submitted for comment,

I reject your submission for comment, and went ahead and applied your
patch, because the README only mentions Ubuntu - so your patch improves
the current README by removing a non-existent config value and supplying
a real config value.

However, on further reading, I don't think we should actually need to
touch the dnsmasq configuration at all. It is the job of dnsmasq to read
/etc/hosts and serve up DNS requests found in that file, along with any
other configured values, so assuming the --no_hosts flag hasn't been set
for dnsmasq, the _real_ steps to use dnsmasq are:

1. Ensure that localhost / public.opensrf / private.opensrf are set up
in /etc/hosts correctly

2. Start dnsmasq

3. Ensure that "nameserver 127.0.0.1" is the first line in
/etc/resolv.conf.

I just ran through that process here, and it works with an
out-of-the-box Fedora dnsmasq configuration.


More information about the Open-ils-dev mailing list