Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[feat] Add SRV and CAA record support to DNS lookup

Aperta Adatta ai principianti
#35 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter

Direzione di ricerca

Inizia da lib/services/dns_client.dart: leggi DnsQueryType e _parseRdata, poi segui _Reader.name() per i nomi DNS compressi. Aggiungi in test/ test con pacchetti acquisiti per SRV, CAA e un record troncato o malformato. Il lavoro è completato quando i tipi di query sono selezionabili, i valori analizzati sono leggibili per le persone, l’output esistente rimane invariato e flutter test ha esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

DnsQueryType currently supports A/AAAA/CNAME/MX/NS/TXT/SOA (lib/services/dns_client.dart), and _parseRdata already decodes NS and SOA. SRV (33) and CAA (257) fall through to the hex dump and cannot be selected in the UI.

Scope

  • Extend the DnsQueryType enum with srv(33, 'SRV') and caa(257, 'CAA') (the record-type chips iterate the enum, so no UI change is needed).
  • Add RDATA parsing in _parseRdata:
    • SRV: priority, weight, port, target (reuse the existing _Reader.name() decoder; it handles pointer compression),
    • CAA: flags byte, length-prefixed ASCII tag, remaining bytes as the value; render like 0 issue "letsencrypt.org".
  • Unit tests from captured response packets: one SRV, one CAA, plus a truncated/bad record case.
  • No new dependencies.

Acceptance criteria

  • flutter test passes with the new parser tests.
  • Querying an SRV and a CAA record shows human-readable values instead of a hex dump.
  • Existing record types keep their current output.

Files

  • lib/services/dns_client.dart
  • test/ (new parser tests)
Lingua principale
Dart
Stelle
15
Fork
1
Merge medio
2h 55m
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Cadman021/VeloceNet-Studio

Tutte le issue di Cadman021/VeloceNet-Studio

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.