Skip to content

DNS resolving not working in ephemeral guests #123

@chrboe

Description

@chrboe

Guests started by bcvk ephemeral are unable to resolve hostnames, even though internet access is available.

To reproduce:

$ bcvk ephemeral run-ssh quay.io/fedora/fedora-bootc:42 
[root@fedora ~]# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=255 time=3.54 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=255 time=3.32 ms
^C
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 3.315/3.429/3.543/0.114 ms
[root@fedora ~]# systemd-resolve google.com
google.com: resolve call failed: Lookup failed due to system error: Network is unreachable

It seems that the DNS server is configured to 10.0.2.3:

[root@fedora ~]# resolvectl status
Global
         Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (ens5)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.0.2.3
       DNS Servers: 10.0.2.3
     Default Route: yes

I can ping this IP address, but I am unsure where exactly it comes from or how to further debug this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions