AdguardTeam / AdguardTeam/AdGuardHome

Allow RDNS to check/discover hostnames when ARP Implementation does not provide them.

Đang mở
#4,419 1 bình luận 10 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
36.9k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Have a question or an idea? Please search it [on our forum](https://github.com/AdguardTeam/AdGuardHome/discussions) to make sure it was not yet asked. If you cannot find what you had in mind, please [submit it here](https://github.com/AdguardTeam/AdGuardHome/discussions/new).

### Prerequisites

Please answer the following questions for yourself before submitting an issue. **YOU MAY DELETE THE PREREQUISITES SECTION.**

- [X] I am running the latest version
- [X] I checked the documentation and found no answer
- [X] I checked to make sure that this issue has not already been filed

### Problem Description
As mentioned previous problems #3142 #3597 spawned a new feature request as a result of not every ARP implementation providing Client hostname information along side it. A conundrum is created. While the addition of the reading of ARP cache allows for the addition of more Client DATA, the conundrum present means that not all clients will have hostnames available. A recipe for an incomplete client list.

### Proposed Solution
A propose solution as discussed between @EugeneOne1 and I in prior issue #3142 , https://github.com/AdguardTeam/AdGuardHome/issues/3142#issuecomment-1075474442

> Some of the devices discovered under ARP, do have an RDNS associated as well.
>Is there away this could be a joined feature as well. Maybe RDNS is not working hard enough and needs to be used after ARP is discovered as well.

> we're already have a couple of related issues (https://github.com/AdguardTeam/AdGuardHome/issues/1949, https://github.com/AdguardTeam/AdGuardHome/issues/3020).
>However, if I recall correctly, no one ever suggested to resolve clients recieved from ARP with rDNS. This may be useful since some implementations of ARP don't support hostnames.

### Alternatives Considered
>Will be added pending other suggestions are presented.

### Additional Information
![image](https://user-images.githubusercontent.com/49514613/159683458-009df763-02c7-4444-bc4a-9d07013b66c9.png)
### Shortened for readability
`/tmp/home/root# cat /proc/net/arp`
`IP address HW type Flags HW address Mask Device`
`192.168.1.133 0x1 0x2 74:e1:82:36:05:ef * br0`
`192.168.1.183 0x1 0x2 00:c3:f4:df:12:7e * br0`
`192.168.1.17 0x1 0x2 e4:5f:01:45:57:9d * br0`
`192.168.1.12 0x1 0x2 34:97:f6:70:16:50 * br0`

`/tmp/home/root# arp -an`
`? (192.168.1.133) at 74:e1:82:36:05:ef [ether] on br0`
`? (192.168.1.183) at 00:c3:f4:df:12:7e [ether] on br0`
`? (192.168.1.17) at e4:5f:01:45:57:9d [ether] on br0`
`? (192.168.1.12) at 34:97:f6:70:16:50 [ether] on br0`

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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.