forked from tunapanda/provision
-
Notifications
You must be signed in to change notification settings - Fork 0
Notes on dnsmasq setup
Brad Smith edited this page Mar 31, 2015
·
1 revision
The easiest way to set up dns aliases is probably to use dnsmasq. This will require...
- remove the dependency on bind (added bonus of removing a submodule)
- deploy dnsmasq (currently using debops.dnsmasq, but maybe easier to manage if we roll our own?)
- figure out a standard for a unique site domain. Currently using
testsite.tunapanda.org
- set up A record for
main.$domain
hostname- Should be do-able with
host-record = main.testsite.tunapanda.org,main,10.0.2.15
, except the version in Ubuntu Precise doesn't seem to supporthost-record
! - An alternative, maybe a better one, that is supported is
interface-name=main.testsite.tunapanda.org,eth1
, which dynamically sets the name to whatever IP is on eth1.- This may be another reason to not use debops, since it seems to always use
host-record
, though we could also just use it without any attempt at hostname setup, then put hostname setup in/etc/dnsmasq.d/01-main_host.conf
- This may be another reason to not use debops, since it seems to always use
- Should be do-able with
- set up CNAME records for services
- Can be done by creating
/etc/dnsmasq.d/02-alias_$name.conf
withcname=testalias.testsite.tunapanda.org,main.testsite.tunapanda.org
. -
However, this seems to only work if the target record is in
/etc/hosts.dnsmasq
(which rather defeats the point ofinterface-name
. :(
- Can be done by creating