Upstart and resolvconf cache

I’ve recently found this when I was trying to fix a nameserver config issue with resolvconf on Ubuntu. When resolvconf populates /etc/resolv.conf, it will read what we have configured in /etc/resolvconf/resolv.conf.d (head, base, tail, etc) and also any dns-server declared in /etc/network/interfaces. I had a conflict with something I was populating in the head file (with Puppet) from something that was configured under /etc/network/interfaces. So I removed the conflicting dns-server declaration from the interfaces file and run “resolvconf -u” to update the config. To my surprise, the “deleted” nameservers from /etc/network/interfaces were still included in /etc/resolv.conf. After some debugging, I have noticed that resolvconf’s Upstart script now keeps a cache file under /run/resolvconf/interface that is a copy of the previous /etc/network/interfaces. You need to delete this file and restart resolvconf to make it work: “stop resolvconf ; start resolvconf”.

marques.cx -> fmarques.org

Not long ago I decided to move to a new personal domain and registered fmarques.org. I am in the process of moving everything from marques.cx to my new domain, which will cease to exist in a few months.  If you are one of the brave souls still keeping an eye on my feed, I advise to change to the new domain before the redirect expires.

O regime acabou

Cheira a podre. O regime acabou:

Depois das detenções de Ricardo Salgado e de José Sócrates, que puseram em cheque o sistema financeiro e o sistema político português (a ordem é arbitrária), seja qual for o rumo que os processos venham a tomar – e não se antevê que seja particularmente auspicioso para nenhum dos dois – o regime precisará de forças hercúleas para se salvar, ou ciclópicas, como dizia outra nossa personagem histórica de fim de regime, por sinal também ela transportada de carro no seu momento final. Se o PS e o PSD não perceberem este momento e não se entenderem rapidamente, não ficarão por cá muito tempo para verem o que lhe sucederá.

Rui Albuquerque, Blasfémias.