title: Can't communicate with service using DNS in service fabric
body: <p>I'm trying to get a stateless service to send a value to another, just to achieve communication between services by using the DNS-service in service fabric. I've tested both applications with postman, and they work fine. I'm following <a href="https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-dnsservice" rel="noreferrer">this tutorial</a> where it seems pretty straight forward to do this. </p>
  
  <p><strong>The DNS-service is enabled:</strong> <a href="https://i.stack.imgur.com/gMo02.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gMo02.png" alt="DNS-service is running"></a></p>
  
  <p><strong>The stateless service has a DNS-name:</strong><a href="https://i.stack.imgur.com/Cx4xq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Cx4xq.png" alt="enter image description here"></a>
  <strong>The DNS-name is configured in the ApplicationManifest.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Service Name="SocketService" 
   ServiceDnsName="SocketService.TimeSeriesActorApplication" 
   ServicePackageActivationMode="ExclusiveProcess"&gt;
      &lt;StatelessService ServiceTypeName="SocketServiceType" 
       InstanceCount="[SocketService_InstanceCount]"&gt;
         &lt;SingletonPartition /&gt;
     &lt;/StatelessService&gt;
  &lt;/Service&gt;
  </code></pre>
  
  <p>I then try to send a http get to the service, just like in the tutorial.</p>
  
  <pre class="lang-cs prettyprint-override"><code>using (var client = new HttpClient())
  {
   client.BaseAddress = new Uri("http://socketservice.timeseriesactorapplication:8712/api/");
   var response = await client.GetAsync("values");
  }
  </code></pre>
  
  <p>But I get an exception: </p>
  
  <blockquote>
    <p>WebException: The remote name could not be resolved: 'socketservice.timeseriesactorapplication'</p>
  </blockquote>
  
  <p>This happens both when I use port 8080 like the tutorial suggests, and when I use the port I specify in ServiceManifest.xml.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Endpoints&gt;
    &lt;Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="8712" /&gt;
  &lt;/Endpoints&gt;
  </code></pre>
  
  <p>What am I missing here?</p>
  
  <p><strong>Update:</strong>
  Using localhost instead of dns-name also works fine.</p>
  
  <p><strong>Issue on Github: <a href="https://github.com/Azure/service-fabric-issues/issues/332" rel="noreferrer">Unable to resolve service DNS name #332</a></strong></p>