AdguardTeam / AdguardTeam/AdGuardHome

Include Client name in query log

Abierto
#5,340 1 comentario 1 reacción 0 asignados Ver en GitHub
feature request
Lenguaje dominante
TypeScript
Estrellas
36.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.