Azure / Azure/app-service-linux-docs

Local host name is not resolved when Vnet integration is enabled

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
150
Forks
90
Avg merge
2m
Merged PRs (30d)
1

Description

**Scenario**: Running a docker version of Squidex in a Linux container on an App Service. Works fine without vnet integration. Squidex is built on .NET Core 3.0
When vnet integration is enabled, the app does not start.

**Issue**: the following code breaks:
```
var host = Dns.GetHostName();
// host is now e.g. b6737257279f
Dns.GetHostAddressesAsync(Dns.GetHostName())
```
This results in an exception "Name or service not known".

The same code works fine when vnet integration is disabled, it e.g. returns: 172.16.58.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.