Tag Archives: dns

Risolvere un nome host da un indirizzo IP in Ruby

Ecco un altro promemoria: come risolvere un nome host da un indirizzo IP in Ruby. Per eseguire l’operazione viene in nostro aiuto la class Resolv. Esempio (usando Rails): hostname = Resolv.new.getname(request.env['REMOTE_ADDR']) Risorse utili: http://ruby-doc.org/stdlib/libdoc/resolv/rdoc/index.html
Posted in Ruby | Also tagged , , , | Leave a comment

Cancellare la cache DNS del computer (flush DNS cache)

I nomi a dominio (ad esempio il nome a dominio di questo blog è tech.focustheweb.com) vengono risolti in indirizzi IP dai server DNS. Ogni volta quindi che scriviamo tech.focustheweb.com sulla barra dell’indirizzo del nostro browser la stringa tech.focustheweb.com viene tradotta in un numero (indirizzo IP) che identifica il computer a cui il nostro browser deve [...]
Posted in Programmazione | Also tagged , , | Leave a comment