title: Issue setting up spring cloud gateway
body: <p>I'm trying to set up spring cloud gateway for a test project but it keeps failing when i use the &quot;lb://&quot; url.</p>
  <p>This is my pom.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  </code></pre>
  <p>
  4.0.0
  
  org.springframework.boot
  spring-boot-starter-parent
  2.4.1
   
  
  com.blar
  test
  0.0.1-SNAPSHOT
  test
  Demo project for Spring Boot</p>
  <pre><code>&lt;properties&gt;
      &lt;java.version&gt;11&lt;/java.version&gt;
      &lt;kotlin.version&gt;1.4.21&lt;/kotlin.version&gt;
      &lt;spring-cloud.version&gt;2020.0.0-M6&lt;/spring-cloud.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
          &lt;artifactId&gt;kotlin-reflect&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
          &lt;artifactId&gt;kotlin-stdlib-jdk8&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-gateway&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-loadbalancer&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
              &lt;version&gt;${spring-cloud.version}&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  
  &lt;build&gt;
      &lt;sourceDirectory&gt;${project.basedir}/src/main/kotlin&lt;/sourceDirectory&gt;
      &lt;testSourceDirectory&gt;${project.basedir}/src/test/kotlin&lt;/testSourceDirectory&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
              &lt;artifactId&gt;kotlin-maven-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;args&gt;
                      &lt;arg&gt;-Xjsr305=strict&lt;/arg&gt;
                  &lt;/args&gt;
                  &lt;compilerPlugins&gt;
                      &lt;plugin&gt;spring&lt;/plugin&gt;
                  &lt;/compilerPlugins&gt;
              &lt;/configuration&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
                      &lt;artifactId&gt;kotlin-maven-allopen&lt;/artifactId&gt;
                      &lt;version&gt;${kotlin.version}&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;spring-milestones&lt;/id&gt;
          &lt;name&gt;Spring Milestones&lt;/name&gt;
          &lt;url&gt;https://repo.spring.io/milestone&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>This is my routing function</p>
  <pre><code> @Bean
  fun customRouteLocator(builder: RouteLocatorBuilder): RouteLocator? {
      return builder.routes()
              .route(&quot;nitro-service&quot;) { r: PredicateSpec -&gt;
                  r.path(&quot;/nitro&quot;)
                          .uri(&quot;lb://nitro-service&quot;)
              }
              .build()
  }
  </code></pre>
  <p>And this is the error i get</p>
  <pre><code>java.net.UnknownHostException: failed to resolve 'DESKTOP' after 10 queries 
  at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1013) ~[netty-resolver-dns-4.1.55.Final.jar:4.1.55.Final]
  Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
  </code></pre>
  <p>It works fine if i specify the actual url but throws this error when i try to combine it with eureka. It's a pretty basic project so there's no code in the gateway outside of the routing function.</p>