{"action":"closed","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/333","repository_url":"https://api.github.com/repos/pi-hole/pi-hole","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/333/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/333/events","html_url":"https://github.com/pi-hole/pi-hole/issues/333","id":134811759,"number":333,"title":"How to preserve upstream DNS options between reinstalls/upgrades?","user":{"login":"SteveW25561","id":13310409,"avatar_url":"https://avatars.githubusercontent.com/u/13310409?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveW25561","html_url":"https://github.com/SteveW25561","followers_url":"https://api.github.com/users/SteveW25561/followers","following_url":"https://api.github.com/users/SteveW25561/following{/other_user}","gists_url":"https://api.github.com/users/SteveW25561/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveW25561/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveW25561/subscriptions","organizations_url":"https://api.github.com/users/SteveW25561/orgs","repos_url":"https://api.github.com/users/SteveW25561/repos","events_url":"https://api.github.com/users/SteveW25561/events{/privacy}","received_events_url":"https://api.github.com/users/SteveW25561/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pi-hole/pi-hole/labels/Documentation%20Needed","name":"Documentation Needed","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-02-19T09:17:36Z","updated_at":"2016-02-23T12:46:37Z","closed_at":"2016-02-23T12:46:37Z","body":"I have configured a few upstream DNS servers (eg TVunblock) that I want to use in preference to Open DNS (although I'd like to list openDNS as a 3rd and 4th fallback in case the TVunblock DNS is down).\r\n\r\nThe current installer only gives google or openDNS as options, and my customizations in /etc/dnsmasq.d/01-pihole.conf are overwritten each time I reinstall using the curl command.\r\n\r\nI know that I can add lines to the dnsmasq.conf file and these are left alone when updating.  \r\n\r\nMy question is: what order will the DNS entries be queried if I have `server=` lines in **dnsmasq.conf**  as well as the upstream DNS server chosen in the install script (which I see is written into the 01-pihole.conf file)?"}}