Opened 12 years ago

Last modified 8 years ago

#732 closed defect (User disappeared)

Tor ignores torrc ServerDNSResolvConfFile

Reported by: crp Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: crp, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Operating system
[root@crobertp tor]# cat /proc/version
Linux version 2.4.21-31301U90_4cl (andreas@…) (gcc version 3.2.2) #1 Qui Jun 26 01:44:43 BRT 2003
[root@crobertp tor]#

I have on torrc of my server this configuration

ServerDNSResolvConfFile /etc/tor/resolv.conf

*configured with *different* DNS servers than the /etc/resolv.conf (of the system)


Tor is using the resolv.conf of the system , instead of the dns servers I configured in torrc ServerDNSResolvConfFile


[Automatically added by flyspray2trac: Operating System: Other Linux]

Child Tickets

Change History (5)

comment:1 Changed 12 years ago by nickm

The "ServerDNS" prefix of ServerDNSResolvConfFile means that it only applies to DNS requests done by an exit node
on behalf of clients. Is this the case here?

comment:2 Changed 12 years ago by nickm

The reporter replied to the mailing list saying that this is an exit node, with a DNS server for Tor on and a DNS server for everything else on Netstat shows Tor connecting to,
despite the ServerDNSResolvConfFile configuration.

This doesn't actually mean that the bug exists, however. ServerDNSResolvConfFile doesn't apply to all
requests done by the Tor host, but only to those requests done from an exit based on client requests. Regular
gethostbyname() and getaddrinfo() calls aren't replaced. This needs more investigation.

comment:3 Changed 12 years ago by nickm

Are you still there? Were you able to tell whether Tor is actually ignoring ServerDNSResolvConfFile entirely,
or just using your system resolver for non-client-based requests? (see above)

comment:4 Changed 12 years ago by nickm

flyspray2trac: bug closed.

comment:5 Changed 8 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.