{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8874","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8874/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8874/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8874/events","html_url":"https://github.com/NixOS/nixpkgs/issues/8874","id":95814131,"number":8874,"title":"dnsmasq should have dependency on networking.extraHosts for restarting purposes","user":{"login":"anderspapitto","id":1388690,"avatar_url":"https://avatars.githubusercontent.com/u/1388690?v=3","gravatar_id":"","url":"https://api.github.com/users/anderspapitto","html_url":"https://github.com/anderspapitto","followers_url":"https://api.github.com/users/anderspapitto/followers","following_url":"https://api.github.com/users/anderspapitto/following{/other_user}","gists_url":"https://api.github.com/users/anderspapitto/gists{/gist_id}","starred_url":"https://api.github.com/users/anderspapitto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderspapitto/subscriptions","organizations_url":"https://api.github.com/users/anderspapitto/orgs","repos_url":"https://api.github.com/users/anderspapitto/repos","events_url":"https://api.github.com/users/anderspapitto/events{/privacy}","received_events_url":"https://api.github.com/users/anderspapitto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-18T10:46:25Z","updated_at":"2016-01-13T16:50:15Z","closed_at":"2016-01-13T16:50:15Z","body":"I removed an entry from networking.extraHosts and ran `nixos-rebuild switch`. However the old value was still cached by dnsmasq, so I had to manually restart that service. NixOS should ideally be smart enough to realize itself that changing /etc/hosts and rebuilding implies restarting dnsmasq"}}