Domain names should be resolved on the remote host if `--dns` is specified

Đang mở
#965 2 bình luận 4 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, networking

Hướng nghiên cứu

Start with sshuttle's CLI argument handling and the local socket.getaddrinfo path described in the issue, then inspect how --dns currently affects resolution. Verify behavior for names resolvable only by the remote host while preserving the existing local-resolution behavior where appropriate; the issue leaves the fallback policy to be decided.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I noticed that domain names passed as CLI arguments to sshuttle are resolved locally via socket.getaddrinfo. In some cases the name is only resolvable by the remote host (e.g. private VPCs), which I think is the use case for --dns. In such a situation, the script fails with Unable to resolve address ...

I propose to allow resolving the names on the remote machines if --dns appears in the command; either always, or only if the name cannot be resolved, if backward compatibility is a concern in this case.

Related to #844

Ngôn ngữ chính
Python
Star
13.6k
Fork
795
Merge trung bình
8 giờ 49 phút
Pull request đã merge (30 ngày)
12

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sshuttle/sshuttle

Tất cả issue của sshuttle/sshuttle

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.