dig mostra il messaggio “recursion requested but not available”

Dopo aver aggiornato una Debian 9 a Debian 10 Buster ho riscontrato uno strano comportamento di dig. Praticamente qualsiasi interrogazione mi tornava sempre l’avviso “WARNING: recursion requested but not available”, ad esempio: $ dig google.com ; <<>> DiG 9.11.5-P4-5.1+deb10u3-Debian <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: FORMERR, id: … Leggi tutto

BASH: recuperare l’IP di un server remoto ed aggiungere una specifica rotta

Qualche giorno fa mi è servito creare uno script bash che aggiungesse una nuova rotta statica al cambiamento dell’IP associato ad un FQDN. Questo uno script bash che recupera l’IP associato ad un FQDN e se non esiste una rotta statica, la crea: #!/bin/bash GW=”192.168.10.4″ RTMP=$(dig +short a.rtmp.youtube.com | tail -n1) EXIST=ip route show $RTMP … Leggi tutto