AdguardTeam / AdguardTeam/AdGuardHome

Include Client name in query log

Aperta
#5,340 1 commento 1 reazione 0 assegnatari Vedi su GitHub
feature request
Lingua principale
TypeScript
Stelle
36.9k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to request a feature or enhancement and not ask a question

### Description

#### What problem are you trying to solve?

Right now, An entry in `querylog.json` looks like this,

> {"T":"2023-01-01T08:51:28.503193134+05:30","QH":"pbs.twimg.com","QT":"A","QC":"IN","CP":"","Answer":"FeiBgAABAAIAAAAAA3BCUwV0V0lNZwNDT20AAAEAAcAMAAUAAQAAAF0AKAlkdWFsc3RhY2sFdHdpbWcHdHdpdHRlcgNtYXAGZmFzdGx5A25ldADAKwABAAEAAAB4AATH6BSf","Result":{},"Upstream":"tls://dns.google:853","IP":"10.0.150.14","Elapsed":20684398}

This entry only includes client IP address and it does not include client name resolved from hosts/arp/rdns/dhcp and this makes it difficult to go back and find the device which sent a request in the past.

#### Proposed solution

My proposal here is to to add a `client_name` field in `querylog.json` and include the resolved value(resolved with arp/dhcp/rdns/hosts) in the record.

#### Alternatives considered

#### Additional information

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.