Cannot nslookup Between Guest Systems

Discussions about using Linux guests in VirtualBox.
Post Reply
Michael8773
Posts: 5
Joined: 17. Oct 2016, 21:01

Cannot nslookup Between Guest Systems

Post by Michael8773 »

Hello,

I am trying to create a 2-node Oracle 12c RAC using VirtualBox 5.1.4. Version Oracle 12c Grid Infrastructure (GI) requires DNS. I have been trying to use dnsmasq (for DNS) and I have it working sucessfully to a degree. My two guest nodes (rac01 and rac02) are running CentOS7 with two Internal Network adaptors. My dnsmasq guest server is running CentOS7.
  • My dnsmasq guest server can both ping and do nslookups of guest systems (rac01 and rac02) no problem.
  • My two guest systems (rac01 and rac02) can ping each other and the dnsmasq dns server but cannot perform nslookups.
What can you recommend?

What could be blocking nslookups in a VirtualBox environment?


Thanks,

Michael
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Cannot nslookup Between Guest Systems

Post by socratis »

I'm not sure if this applies to your case, but the release notes for the 5.1.7 TestBuilds, contain the following:
• NAT Network: when the host has only loopback nameserver that cannot be mapped to the guests (e.g. dnsmasq running on 127.0.1.1), make DHCP supply NAT Network DNS proxy as nameserver.
The terminology is a little too esoteric for me, so I'll let you do the testing ;)
https://www.virtualbox.org/wiki/Testbuilds
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Michael8773
Posts: 5
Joined: 17. Oct 2016, 21:01

Re: Cannot nslookup Between Guest Systems

Post by Michael8773 »

Thanks for posting that. After I read it 5 times to get near understanding it, I am not using DHCP. All my VM's are using static IPs. They are all set to "Internal Network" and on that network I have also created a dns server via dnsmasq.

I was thinking maybe I need to tell VirtualBox to use my internal guest VM to be a DNS somewhere as even though it is on the same network it is not finding it. All the VM guests on that network can ping each other. Again, nslookup is working (resolving the hostnames) on my dnsmasq dns server ONLY but not from my other VM CentOS7 guests (even though the resolv.conf is set on the guest to use my dnsmasq guest as the dns).

What can you recommend?

Thanks,

Michael
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot nslookup Between Guest Systems

Post by Perryg »

By definition if you can reach the guests from each other then VBox has done its thing. Everything else will be a configuration/use issue. I suspect you have not defined the guests friendly names or added them to the DNS server. Not sure how you do that with dnsmasq but you should be able to find out how. I normally just use a real DNS server and be done with it.
Michael8773
Posts: 5
Joined: 17. Oct 2016, 21:01

Re: Cannot nslookup Between Guest Systems

Post by Michael8773 »

dnsmasq and nslooks ARE working. It was my misunderstanding of how dnsmasq works that was wrong. dnsmasq needs to be installed on every system that needs DNS emulated. I was so fixed on dnsmasq working like a remote DNS server I did not see the obvious.

Thanks for all your comments which ultimately pointed me in the direction of seeing how dnsmasq actually works.

-Michael
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Cannot nslookup Between Guest Systems

Post by socratis »

Thanks for letting us know.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply