This is an example Materia component for installing and configuring dnsmasq running in a container. It was written for my personal and instructional use; I would not recommend using it in production (though I am).
You can use it in your own Materia repository as a remote component like so:
[Remotes.dnsmasq.git]
URL = "https://github.com/stryan/dnsmasq_component"
This component was designed for Materia v0.6.0.
By default this component sets up no configuration for dnsmasq. The following attributes are available for configuration:
containerTag: what container tag to use. DefaultslatesthostPort= What to interface/port to publish. Defaults to53useSeperateFiles= Whether to include thehostsandethersfiles. Defaults totrueconfContents= The contents of thednsmasq.conffile. Defaults to empty.hosts= The contents of the/etc/hostsfile. Defaults to empty.ethers= The contents of the/etc/ethersfile. Defaults to empty.