Absolute DNS name are supported
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- networking
Hướng nghiên cứu
Start at the UdpTransportExecutor entry point and reproduce the provided PHP example with a trailing-dot name such as www.google.com.. Trace how the Query name is handled before the UDP request is sent, then verify that A and AAAA queries resolve successfully for absolute DNS names.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The UdpTransportExecutor does not correctly handle FQDN with a trailing dot, such as google.com.. This notation is often used for in-cluster DNS queries and ensures efficiency by telling the resolver not to search using local domain suffixes. When passing such names, the resolution fails.
use React\Dns\Model\Message;
use React\Dns\Query\Query;
use React\Dns\Query\UdpTransportExecutor;
$executor = new UdpTransportExecutor('8.8.8.8:53');
$name = $argv[1] ?? 'www.google.com.';
$ipv4Query = new Query($name, Message::TYPE_A, Message::CLASS_IN);
$ipv6Query = new Query($name, Message::TYPE_AAAA, Message::CLASS_IN);
$executor->query($ipv4Query)->then(function (Message $message) {
foreach ($message->answers as $answer) {
echo 'IPv4: ' . $answer->data . PHP_EOL;
}
}, 'printf');
$executor->query($ipv6Query)->then(function (Message $message) {
foreach ($message->answers as $answer) {
echo 'IPv6: ' . $answer->data . PHP_EOL;
}
}, 'printf');
I tested on php8.4, react/socket v1.16.0, react/dns v1.13.0
- Ngôn ngữ chính
- PHP
- Star
- 542
- Fork
- 62
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của reactphp/dns
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
-
bug new feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
Roadmap to reactphp/dns v3 Đang mởmaintenance
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
-
help wanted new feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Support extended DNS (EDNS0) Đang mởhelp wanted new feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 32/100
Issue tương tự
-
[Chore] Keep one viget-block-generator skill and replicate it, instead of four tracked copies Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
hector-jewell/food-delivery-system-for-restaurant-using-php#1311 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Sylius/SyliusGridBundle#501 ·