Hi, how, if possible, do I ping guest vm from host with its domain name? It says name not found. I've added the name to host's etc/host file.
I can ping guest from host with IP address and I can ping host from the guest. Also, I can ping a site like Google from within guest vm.
Host = windows 7
Guest = centos 6.5
Guest network is host only.
Ping guest vm with domain name?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Ping guest vm with domain name?
How much do you know about networks? Aren't both guest and host in the same domain?
Anyway, the obvious answer is that you use a DNS service to look up the IP address. If this fails then the domain isn't listed or isn't unique.
Anyway, the obvious answer is that you use a DNS service to look up the IP address. If this fails then the domain isn't listed or isn't unique.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Ping guest vm with domain name?
Are you confusing the domain name with the friendly name of the guest?
Anyway the /etc/hosts name will not do what you want since I assume you want to reach the guest from the host. You need to add the friendly name to the the hosts hosts file.
You can however use the /etc/hosts if you intention is to reach the host from the guest, and if that is not working you must have not entered the proper information.
Also be aware that ping is disabled by default in newer Windows and you would need to enable icmp in the firewall to turn it on.
Anyway the /etc/hosts name will not do what you want since I assume you want to reach the guest from the host. You need to add the friendly name to the the hosts hosts file.
You can however use the /etc/hosts if you intention is to reach the host from the guest, and if that is not working you must have not entered the proper information.
Also be aware that ping is disabled by default in newer Windows and you would need to enable icmp in the firewall to turn it on.