{"action":"opened","issue":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/552","repository_url":"https://api.github.com/repos/vstakhov/rspamd","labels_url":"https://api.github.com/repos/vstakhov/rspamd/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rspamd/issues/552/comments","events_url":"https://api.github.com/repos/vstakhov/rspamd/issues/552/events","html_url":"https://github.com/vstakhov/rspamd/issues/552","id":140773655,"number":552,"title":"resolv.conf nameserver order/priority on Linux","user":{"login":"Freeaqingme","id":33034,"avatar_url":"https://avatars.githubusercontent.com/u/33034?v=3","gravatar_id":"","url":"https://api.github.com/users/Freeaqingme","html_url":"https://github.com/Freeaqingme","followers_url":"https://api.github.com/users/Freeaqingme/followers","following_url":"https://api.github.com/users/Freeaqingme/following{/other_user}","gists_url":"https://api.github.com/users/Freeaqingme/gists{/gist_id}","starred_url":"https://api.github.com/users/Freeaqingme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freeaqingme/subscriptions","organizations_url":"https://api.github.com/users/Freeaqingme/orgs","repos_url":"https://api.github.com/users/Freeaqingme/repos","events_url":"https://api.github.com/users/Freeaqingme/events{/privacy}","received_events_url":"https://api.github.com/users/Freeaqingme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T19:23:37Z","updated_at":"2016-03-14T19:23:37Z","closed_at":null,"body":"I have a /etc/resolv.conf file that looks as follows:\r\n```# File Managed by Puppet\r\ndomain mail.example.net\r\nsearch example.net example.com \r\nnameserver 127.0.0.1\r\nnameserver 80.69.67.66\r\nnameserver 80.69.66.67\r\n\r\n\r\n```\r\n\r\nIt seems rspamd uses all the nameservers with equal priority:\r\n```netstat -lantup | grep 53 | grep rspamd | awk '{print $5}' | cut -d ':' -f1 | sort | uniq -c \r\n     40 127.0.0.1\r\n     40 80.69.66.67\r\n     40 80.69.67.66```\r\n\r\nEven though, at least on Linux, '''man resolv.conf''' says: ```\r\nIf  there  are  multiple  servers,  the  resolver library queries them in the order listed.\r\n```\r\n\r\nAs such, I'd expect to see all connections to 127.0.0.1 (assuming they're successful), and no connections to the other two nameservers.\r\n\r\nRspamd daemon version 1.2.0\r\nRelease id: 98ac7cd\r\nLinux mx8 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux\r\n"}}