miniature-advantage-69986
10/28/2022, 11:07 AMfast-garage-66093
10/28/2022, 3:37 PM*.localhost
name resolution works on any other platform and is just a systemd-resolved
feature.miniature-advantage-69986
10/28/2022, 7:14 PMfast-garage-66093
10/28/2022, 7:50 PMcurl.exe
seem to do it:
PS C:\Users\Jan> curl <http://foo.localhost>
curl : The remote name could not be resolved: 'foo.localhost'
At line:1 char:1
+ curl <http://foo.localhost>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
C:\Users\Jan>curl <http://foo.localhost>
curl: (6) Could not resolve host: foo.localhost
miniature-advantage-69986
10/28/2022, 7:54 PMfast-garage-66093
10/28/2022, 7:56 PM127.0.0.1
and not localhost
. The latter is often resolved to [::1]
on Windows, and RD is not currently reachable over IPv6C:\Users\Jan>kubectl get no
NAME STATUS ROLES AGE VERSION
desktop-4992680 Ready control-plane,master 97d v1.23.8+k3s2
C:\Users\Jan>curl <http://127.0.0.1>
404 page not found
C:\Users\Jan>curl <http://localhost>
404 page not found
C:\Users\Jan>kubectl get svc -n kube-system traefik
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
traefik LoadBalancer 10.43.24.34 192.168.194.136 80:31257/TCP,443:32638/TCP 97d
404 page not found
comes from traefik, so name resolution and routing seems to be working fine (even for localhost
)rich-airport-82798
10/31/2022, 12:16 PMfast-garage-66093
10/31/2022, 4:06 PM*.localhost
addresses at the system level; that would be very useful, if it can be made to work consistentlyminiature-advantage-69986
11/01/2022, 5:44 AMkubectl get svc -n kube-system traefik
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
traefik LoadBalancer 10.43.143.44 172.27.9.226 80:30053/TCP,443:32490/TCP 153d
Besides this 127.0.0.1 is not being forwarded to the ingress-controller 172.27.9.226.
curl -v <http://grafana.monitoring.localhost>
* Trying 127.0.0.1:80...
* Trying [::1]:80...
* connect to 127.0.0.1 port 80 failed: Connection refused
* connect to ::1 port 80 failed: Connection refused
* Failed to connect to grafana.monitoring.localhost port 80 after 2254 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to grafana.monitoring.localhost port 80 after 2254 ms: Couldn't connect to server
fast-garage-66093
11/01/2022, 6:04 AMcurl
releases have implemented this internally (it is not the change mentioned in the blog post though, which only resolves plain localhost
internally. It is curl does not automatically resolve `*.localhost` like Chrome does. · Issue #9192 · curl/curl that implements the subdomain feature already implemented in Chrome and Firefox, but not Safari).miniature-advantage-69986
11/01/2022, 6:07 AMfast-garage-66093
11/01/2022, 6:07 AMminiature-advantage-69986
11/01/2022, 6:14 AMnetsh interface ipv4 show route
Veröff. Typ Met Präfix Idx Gateway/Schnittstelle
------- -------- ---- ------------------------ --- ---------------------
Nein Manuell 0 0.0.0.0/0 25 192.168.178.1
Nein Manuell 0 0.0.0.0/0 37 192.168.178.1
Nein Manuell 256 0.0.0.0/0 40 10.202.59.14
Nein System 256 10.202.59.12/30 40 Mobilfunk
Nein System 256 10.202.59.13/32 40 Mobilfunk
Nein System 256 10.202.59.15/32 40 Mobilfunk
Nein System 256 127.0.0.0/8 1 Loopback Pseudo-Interface 1
Nein System 256 127.0.0.1/32 1 Loopback Pseudo-Interface 1
Nein System 256 127.255.255.255/32 1 Loopback Pseudo-Interface 1
Nein System 256 172.26.32.0/20 65 vEthernet (Default Switch)
Nein System 256 172.26.32.1/32 65 vEthernet (Default Switch)
Nein System 256 172.26.47.255/32 65 vEthernet (Default Switch)
Nein System 256 172.27.0.0/20 78 vEthernet (WSL)
Nein System 256 172.27.0.1/32 78 vEthernet (WSL)
Nein System 256 172.27.15.255/32 78 vEthernet (WSL)
Nein System 256 192.168.178.0/24 25 Ethernet 2
Nein System 256 192.168.178.0/24 37 Ethernet
Nein System 256 192.168.178.39/32 37 Ethernet
Nein System 256 192.168.178.60/32 25 Ethernet 2
Nein System 256 192.168.178.255/32 25 Ethernet 2
Nein System 256 192.168.178.255/32 37 Ethernet
Nein System 256 224.0.0.0/4 1 Loopback Pseudo-Interface 1
Nein System 256 224.0.0.0/4 25 Ethernet 2
Nein System 256 224.0.0.0/4 37 Ethernet
Nein System 256 224.0.0.0/4 40 Mobilfunk
Nein System 256 224.0.0.0/4 18 Bluetooth-Netzwerkverbindung
Nein System 256 224.0.0.0/4 44 WLAN
Nein System 256 224.0.0.0/4 42 LAN-Verbindung* 11
Nein System 256 224.0.0.0/4 65 vEthernet (Default Switch)
Nein System 256 224.0.0.0/4 38 LAN-Verbindung* 12
Nein System 256 224.0.0.0/4 78 vEthernet (WSL)
Nein System 256 255.255.255.255/32 1 Loopback Pseudo-Interface 1
Nein System 256 255.255.255.255/32 25 Ethernet 2
Nein System 256 255.255.255.255/32 37 Ethernet
Nein System 256 255.255.255.255/32 40 Mobilfunk
Nein System 256 255.255.255.255/32 18 Bluetooth-Netzwerkverbindung
Nein System 256 255.255.255.255/32 44 WLAN
Nein System 256 255.255.255.255/32 42 LAN-Verbindung* 11
Nein System 256 255.255.255.255/32 65 vEthernet (Default Switch)
Nein System 256 255.255.255.255/32 38 LAN-Verbindung* 12
Nein System 256 255.255.255.255/32 78 vEthernet (WSL)
fast-garage-66093
11/01/2022, 6:16 AMminiature-advantage-69986
11/02/2022, 11:28 AM