<div> </div><div> </div><div>13.03.2020, 14:55, "teor" <teor@riseup.net>:</div><blockquote><div><div>Hi,</div><div> </div><div><div><div><blockquote><blockquote>Post the entire file without shortening or removing any line. If it complains</blockquote></blockquote></div><blockquote><div><blockquote>about parse error, there must be something wrong in it, but you don't notice</blockquote><blockquote>or don't think it is wrong. People on the mailing list can check if it's ok,</blockquote><blockquote>but again only if you post the entire file (copy-paste or attach).</blockquote><blockquote> </blockquote><br />С уважением,<br />Станислав<br /> <div><resolv.conf></div></div></blockquote><div> </div><span style="color:#000000">There could be a few things wrong here.</span><div style="color:rgb( 0 , 0 , 0 )"> </div><div style="color:rgb( 0 , 0 , 0 )">Try setting ServerDNSResolvConfFile to /dev/null,</div><div style="color:rgb( 0 , 0 , 0 )">or a world-readable empty file, and see if your problem goes away.</div><div style="color:rgb( 0 , 0 , 0 )"> </div><div style="color:rgb( 0 , 0 , 0 )">If it does, here are some common issues to check:<div> </div><div>What are the permissions on /etc.resolv.conf ?</div><div>Can the tor user read the file?</div><div> </div><div>Is the file a symlink?</div><div>(macOS does this, not sure if some Linux distros do as well)</div><div> </div><div>Are there any hidden characters in the file?</div><div>Does it use Unix newlines?</div><div> </div><div>Tor uses libevent's evdns_base_resolv_conf_parse() to parse the file.</div><div><a href="https://libevent.org/doc/dns_8h.html#a7e3a053e25ae7c045944a5db0947babb">https://libevent.org/doc/dns_8h.html#a7e3a053e25ae7c045944a5db0947babb</a></div><div> </div><div>How old is your version of libevent?</div><div> <div>T<div> </div><div>-- </div><div>teor</div><div>----------------------------------------------------------------------</div></div></div></div></div></div><div> </div></div>,<p>_______________________________________________<br />tor-relays mailing list<br /><a href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.org</a><br /><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a></p></blockquote><div> </div><div> </div><div>С уважением,</div><div>Станислав</div><div> </div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">What are the permissions on /etc.resolv.conf ?</span></div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">read and write</span></div><div> </div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Is the file a symlink?</span></div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I do not know</span></div><div> </div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Are there any hidden characters in the file?</span></div><div>no</div><div> </div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Does it use Unix newlines?</span></div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I do not know</span></div><div> </div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">How old is your version of libevent?</span></div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">libevent 2.1.11</span></div><div> </div><div><span style="background-color:#ffffff;color:#000000;float:none;font-family:'arial' , sans-serif;font-size:18px;font-style:normal;font-weight:400;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I deleted this file and managed to start, but such entries appeared:</span></div><div> </div><div><div><div>Mar 09 22:32:18.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.</div><div>Mar 09 22:32:18.000 [notice] Read configuration file "/etc/tor/torrc1".</div><div>Mar 09 22:32:18.000 [notice] Your ContactInfo config option is not set. Please consider setting it, so we can contact you if your server is misconfigured or something else goes wrong.</div><div>Mar 09 22:32:18.000 [warn] MyFamily is set but ContactInfo is not configured. ContactInfo should always be set when MyFamily option is too.</div><div>Mar 09 22:32:18.000 [notice] Tor 0.4.2.5 opening log file.</div><div>Mar 09 22:32:18.000 [warn] Unable to stat resolver configuration in '/etc/resolv.conf': No such file or directory</div><div>Mar 09 22:32:18.000 [warn] Could not read your DNS config from '/etc/resolv.conf' - please investigate your DNS configuration. This is possibly a problem. Meanwhile, falling back to local DNS at 127.0.0.1.</div><div>Mar 09 22:32:18.000 [warn] Unable to stat resolver configuration in '/etc/resolv.conf': No such file or directory</div><div>Mar 09 22:32:18.000 [warn] Could not read your DNS config from '/etc/resolv.conf' - please investigate your DNS configuration. This is possibly a problem. Meanwhile, falling back to local DNS at 127.0.0.1.</div><div> </div></div></div><div> </div><div> </div><div> </div><div> </div>