[Server-devel] adding custom dns entries on XS

Daniel Drake dsd at laptop.org
Tue Mar 17 17:09:05 EDT 2009


2009/3/17 Martin Langhoff <martin.langhoff at gmail.com>:
> On Wed, Mar 18, 2009 at 9:04 AM, Daniel Drake <dsd at laptop.org> wrote:
>> dnsmasq can certainly help. With dnsmasq you just have to add an entry
>> in /etc/hosts on the server, and then dnsmasq automatically picks it
>> up.
>
> Well, then we'd have to have a "conf.d" for /etc/hosts... this part of
> the problem at least gets shifted around but not made easier.

Martin 2 - dnsmasq 1

but as usual, dnsmasq has a cunning plan

       -H, --addn-hosts=<file>
              Additional  hosts  file.  Read  the  specified  file  as well as
              /etc/hosts. If -h is given, read only the specified  file.  This
              option  may be repeated for more than one additional hosts file.

Can also be specified with the "addn-hosts" setting in the config file.

bam!! Martin 2 - dnsmasq 2

Daniel


More information about the Server-devel mailing list