[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: name resolution



Thanks.


On Thu, May 1, 2014 at 7:33 PM, filip <filip@fbvnet.be> wrote:
On Thu, 1 May 2014 12:48:47 +0530
L V Gandhi <lvglist@gmail.com> wrote:

> Resolving www.nse-india.com... failed: Name or service not known.
> wget: unable to resolve host address `www.nse-india.com'

If you have the dnsutils package installed in the virtual machine, try
looking up the name with dig. Look in /etc/resolv.conf on your host
system what name server it uses.

Then in the virtual machine, run: (replacing 192.168.1.1 with the
actual ip address of the name server)

dig @192.168.1.1 www.nse-india.com

That should tell you if the name server is accessible at all from the
virtual machine, or if there is a routing problem or a firewall that is
blocking access.

If it's a network problem, you will see something like:

;; connection timed out; no servers could be reached

It's also possible that name server is restricting the ip addresses
from where it allows queries, and your vm is not in the allowed range.

In that case, you will get something like this:

;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7248
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

If the dns is working fine, you will get

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9178

and the list of dns records it found. In that case, you just need to
set up /etc/resolv.conf and /etc/nsswitch.conf on the vm.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20140501160328.6cb728ef@orac.fil" target="_blank">https://lists.debian.org/[🔎] 20140501160328.6cb728ef@orac.fil




--
L V Gandhi

Reply to: