vm can not ping pc in lan by hostnames

Aramaki718

New Member
Dec 25, 2024
2
0
1
If I ping a local computer by name, an error occurs: Temporary failure in name resolution. If I ping via IP then everything is ok. How to fix it?
ping PC-01
ping: PC-01: Temporary failure in name resolution

ping 10.10.1.10
PING 10.10.1.10 (10.10.1.10) 56(84) bytes of data.
64 bytes from 10.10.1.10: icmp_seq=1 ttl=128 time=0.493 ms
64 bytes from 10.10.1.10: icmp_seq=2 ttl=128 time=0.336 ms
64 bytes from 10.10.1.10: icmp_seq=3 ttl=128 time=0.546 ms
64 bytes from 10.10.1.10: icmp_seq=4 ttl=128 time=0.409 ms
64 bytes from 10.10.1.10: icmp_seq=5 ttl=128 time=0.467 ms
64 bytes from 10.10.1.10: icmp_seq=6 ttl=128 time=0.388 ms
64 bytes from 10.10.1.10: icmp_seq=7 ttl=128 time=0.551 ms
64 bytes from 10.10.1.10: icmp_seq=8 ttl=128 time=0.410 ms
64 bytes from 10.10.1.10: icmp_seq=9 ttl=128 time=0.422 ms
64 bytes from 10.10.1.10: icmp_seq=10 ttl=128 time=0.479 ms
64 bytes from 10.10.1.10: icmp_seq=11 ttl=128 time=0.401 ms
64 bytes from 10.10.1.10: icmp_seq=12 ttl=128 time=0.278 ms
--- 10.10.1.10 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11258ms
rtt min/avg/max/mdev = 0.278/0.431/0.551/0.077 ms
 
Last edited:
Please provide the output of "nslookup pc-01" (you may need to install it using the following command: "apt install dnsutils") and "cat /etc/resolv.conf"
I guess that you either didn't configure a DNS Server or that you didn't configure the DNS domain/search entries in /etc/resolv.conf
 
Please provide the output of "nslookup pc-01" (you may need to install it using the following command: "apt install dnsutils") and "cat /etc/resolv.conf"
I guess that you either didn't configure a DNS Server or that you didn't configure the DNS domain/search entries in /etc/resolv.conf
Ubuntu
nslookup PC-01
;; Got SERVFAIL reply from 127.0.0.53
Server: 127.0.0.53
Address: 127.0.0.53#53

** server can't find PC-01: SERVFAIL

If I edit a file /etc/resolv.conf, save it, then restart the service, it resets back.
/etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search .
-----
Proxmox VE
nslookup pc-01
root@pve01:~# nslookup PC-01
Server: 10.10.1.190
Address: 10.10.1.190#53

Name: PC-01.it.local
Address: 10.10.1.10
 

Attachments

  • Proxmox ve.jpg
    Proxmox ve.jpg
    11.7 KB · Views: 2
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!