Hi. I’ve read about using request.remote_ip to resolve an IP from an
incoming request. Is there a similar way to resolve the hostname from an
incoming request or do I need to use the IP in combination with some
other library?
It’s going to slow your site down however… DNS can take some time… you
may want to cache the data locally or look into having a very close
caching nameserver, etc.
Hi. I’ve read about using request.remote_ip to resolve an IP from an
incoming request. Is there a similar way to resolve the hostname from an
incoming request or do I need to use the IP in combination with some
other library?
It’s going to slow your site down however… DNS can take some time…
you
may want to cache the data locally or look into having a very close
caching nameserver, etc.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.