skip to Main Content

I’m unable to solve the below error since hours in Solr Admin. Please help me.

Unable to resolve canonical hostname for local host,​ possible DNS misconfiguration. Set the ‘solr.dns.prevent.reverse.lookup’ sysprop to true on startup to prevent future lookups if DNS can not be fixed.

enter image description here

2

Answers


  1. The standard JVM accepts -D<param name>=<value> to set global configuration values available to the running application.

    Depending on how you’re starting Solr, you can edit solr.in.cmd in Windows or solr.in.sh in Linux or OS X.

    Search for SOLR_OPTS and see how it uses -D... parameters to set new values. -Dsolr.dns.prevent.reverse.lookup=true is what you’d add as a setting like this.

    Fixing DNS would be to make sure that localhost resolves locally at least.

    Login or Signup to reply.
  2. The most direct way to fix this issue is to start Solr with the system property solr.dns.prevent.reverse.lookup=true in the command line.

    For instance under Windows in a PowerShell console :

    binsolr.cmd start "-Dsolr.dns.prevent.reverse.lookup=true"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search