I have setup dnsmasq on ubuntu 14.04. The dnsmasq part works fine. However on boot, dnsmasq runs BEFORE eth0 is up. This causes dnsmasq to not respond to queries on eth0. In syslog I can see dnsmasq start and about 3 seconds later eth0 comes up.
If i just restart dnsmasq all is fine.
I have tried moving the order of dnsmasq around in rd2.d. I can get closer but it still runs first.
Is there a way to force it to wait for eth0 to be up, or is there a way to force a 10 second delay before dnsmasq starts. Perhaps there is a script that I can run in rc2.d to stall the whole init process for a few seconds? (This is a server that is rarely down, I don't care if it takes a few extra seconds to restart)
(as a side note: syslog also tells me that anything that needs DNS at boot time is also annoyed that dnsmasq is not running)