Just add a goddamned nameserver to Ubuntu. I have lxc, and I want to ssh to my containers without knowing their IPs or starting them in the foreground. Is that so hard?!
Add the DNS server. Call the file whatever you like. For my purposes, I’m adding my lxc DNS server, so I call it
“That’s it.” dnsmasq will notify resolvconf that you’re running a local caching DNS server, so just letting dnsmasq know what your nameservers are is sufficient to use them.
You may have noticed a lot of sarcastic quotes here. This is really, really sloppy and fucking stupid. Adding a DNS server didn’t used to mean running your own private caching DNS server. You used to add a line to a config file. I’m not saying that making a backend to maintain a database of DNS servers and enable notification and interoperation with other services is stupid (OK, maybe I am), but they could at least make it as simple as allowing you to append a custom IP to a file in
/etc/resolvconf/! Seriously, what the fuck?!.