mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-22 07:53:43 +01:00
Talk to custom DNS server on pod, instead of the ones in /etc/resolv.conf
This commit is contained in:
parent
b65bb29023
commit
cdbb379910
@ -179,7 +179,10 @@ class DnsProxy(Handler):
|
||||
|
||||
sock = socket.socket(family, socket.SOCK_DGRAM)
|
||||
sock.setsockopt(socket.SOL_IP, socket.IP_TTL, 42)
|
||||
sock.connect((peer, 53))
|
||||
# Connect to custom DNS server running in the Telepresence pod:
|
||||
# XXX eventually this should be configured via command-line
|
||||
# option and submitted to upstream as improvement.
|
||||
sock.connect(('127.0.0.1', 9053))
|
||||
|
||||
self.peers[sock] = peer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user