I presume you have already verified to have actual internet connectivity working tip top in your Ubuntu within VirtualBox.
If so, a frequent reason for your own recursive server to not be working is if your internet provider is blocking access to other authoritative name servers that run on the domain
port. I see you have already tried making direct requests to the root servers unsuccessfully directly with dig
, which would indicate that indeed some connectivity issues are in place.
In short, you can do a simple test: try running dig @8.8.8.8 +trace www.google.com
to emulate how a recursive resolver would be doing name resolution.
If you get timeouts prior to .
, then there's either something wrong with your connectivity or your provider blocks Google Public DNS (and very likely any other DNS, too).
If you get a timeout right after .
, then your provider blocks access to the root servers (and probably all other authoritative name servers, too).
If your recursive resolution has no timeouts, but is missing the com.
and google.com.
steps, directly jumping from .
to www.google.com.
(or perhaps doesn't even have .
to start with), then it means that your provider is redirecting all domain
-port requests to their own set of recursive DNS servers, and you cannot run your own recursive name server with such internet connectivity.
If you get result almost exactly as below, with all the .
, com.
, google.com.
and www.google.com.
steps, then your own local recursive resolver should work just fine, provided the installation and configuration instructions are followed.
# dig @8.8.8.8 +trace www.google.com
; <<>> DiG 9.7.3 <<>> @8.8.8.8 +trace www.google.com
; (1 server found)
;; global options: +cmd
. 2244 IN NS a.root-servers.net.
. 2244 IN NS b.root-servers.net.
. 2244 IN NS c.root-servers.net.
. 2244 IN NS d.root-servers.net.
. 2244 IN NS e.root-servers.net.
. 2244 IN NS f.root-servers.net.
. 2244 IN NS g.root-servers.net.
. 2244 IN NS h.root-servers.net.
. 2244 IN NS i.root-servers.net.
. 2244 IN NS j.root-servers.net.
. 2244 IN NS k.root-servers.net.
. 2244 IN NS l.root-servers.net.
. 2244 IN NS m.root-servers.net.
;; Received 228 bytes from 8.8.8.8#53(8.8.8.8) in 25 ms
com. 172800 IN NS d.gtld-servers.net.
com. 172800 IN NS i.gtld-servers.net.
com. 172800 IN NS j.gtld-servers.net.
com. 172800 IN NS g.gtld-servers.net.
com. 172800 IN NS b.gtld-servers.net.
com. 172800 IN NS f.gtld-servers.net.
com. 172800 IN NS l.gtld-servers.net.
com. 172800 IN NS a.gtld-servers.net.
com. 172800 IN NS m.gtld-servers.net.
com. 172800 IN NS c.gtld-servers.net.
com. 172800 IN NS h.gtld-servers.net.
com. 172800 IN NS e.gtld-servers.net.
com. 172800 IN NS k.gtld-servers.net.
;; Received 504 bytes from 192.33.4.12#53(c.root-servers.net) in 15 ms
google.com. 172800 IN NS ns2.google.com.
google.com. 172800 IN NS ns1.google.com.
google.com. 172800 IN NS ns3.google.com.
google.com. 172800 IN NS ns4.google.com.
;; Received 168 bytes from 192.55.83.30#53(m.gtld-servers.net) in 183 ms
www.google.com. 300 IN A 74.125.225.208
www.google.com. 300 IN A 74.125.225.211
www.google.com. 300 IN A 74.125.225.212
www.google.com. 300 IN A 74.125.225.209
www.google.com. 300 IN A 74.125.225.210
;; Received 112 bytes from 216.239.38.10#53(ns4.google.com) in 24 ms