From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Browsers cannot access WWW while ping and host utilities work as expected.
Date: Tue, 13 Aug 2013 09:05:03 +0200 [thread overview]
Message-ID: <5209DA9F.5030504@gmail.com> (raw)
In-Reply-To: <CA+t6X7fKLJgWg8MLROB2SsgrgvSNaWZncfLkgNaN08nmcii7Cg@mail.gmail.com>
On 13/08/2013 08:31, gevisz wrote:
> 2013/8/12 Alan McKinnon <alan.mckinnon@gmail.com>:
>> On 12/08/2013 09:13, gevisz wrote:
>>> The response of the first router contained an error that prevented all the
>>> other applications to use it, the system knew about it (for example from
>>> the output of the host utility) but, nevertheless did not proceeded with
>>> the next router listed in resolv.conf.
>>>
>>> I do undersand that this may be because of the layered structure of the
>>> networked software. But, nevertheless, I think that something is fundamentally
>>> wrong with this.
>>
>> What kind of error did you get?
>
> As I have already wrote it earlier, with three different DNS in
> /etc/resolv.conf and /etc/conf.d/net files, the host utility correctly
> reported IP address of a site (eg, www.google.com) but added
> the following message:
> ;; Warning: query response not set
>
> With only the first (my local DNS) in /etc/resolv.conf and
> /etc/conf.d/net files,
> the output of the host utility was as follows:
>
> # host www.google.com
> www.google.com has address 74.125.232.52
> www.google.com has address 74.125.232.48
> www.google.com has address 74.125.232.49
> www.google.com has address 74.125.232.50
> www.google.com has address 74.125.232.51
> ;; Warning: query response not set
> ;; Warning: query response not set
> Host www.google.com not found: 4(NOTIMP)
>
> In both cases above no internet application (eg, links or firefox)
> could convert site names to IP adresses and only after deleting
> the first (local) DNS from /etc/resolv.conf and /etc/conf.d/net files,
> internet applications started to work as expected (and the host
> utility, in this case, returned no error or warning message)
>
> That have proved to myself that
>
> "The response of the first router contained an error
> that prevented all the other applications to use it,
> the system knew about it (for example from
> the output of the host utility) but, nevertheless,
> did not proceeded with the next router listed in
> resolv.conf [or /etc/conf.d/net].
> I do undersand that this may be because of
> the layered structure of the networked software.
> But, nevertheless, I think that something is fundamentally
> wrong with this."
the host command is not your local resolver in libc, you cannot take the
output of host and conclude anything about your resolver, as they
operate in fundamentally different ways with entirely different purposes.
Your DNS setup is doing exactly what it is supposed to do - the first
cache returned an error and your local resolver concludes the query
cannot be resolved, so stops trying.
Solution: upgrade your router's firmware. It looks like it's bust.
>
>> If complete garbage came back, I'm not sure what the resolver does with
>> that (oddly enough, I never tested that)
>>
>> The more usual case is you get a proper DNS result of NXDOMAIN which
>> indicates the query is valid, but the entry is not in DNS. It's
>> pointless trying another cache as per DNS, they should all then return
>> that result.
>>
>> This is why the router did not try the other entries in resolv.conf -
>> that usually only happens when a cache does not respond. So the
>> behaviour you saw is probably correct albeit not the behaviour you wanted.
>>
>>
>> --
>> Alan McKinnon
>> alan.mckinnon@gmail.com
>>
>>
>
--
Alan McKinnon
alan.mckinnon@gmail.com
next prev parent reply other threads:[~2013-08-13 7:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-04 18:56 [gentoo-user] Browsers cannot access WWW while ping and host utilities work as expected gevisz
2013-08-04 19:21 ` Mark Pariente
2013-08-04 19:57 ` Mick
2013-08-04 20:10 ` Kurian Thayil
2013-08-05 6:06 ` gevisz
2013-08-05 10:06 ` Mick
2013-08-05 12:59 ` Bruce Hill
2013-08-05 14:31 ` Marc Joliet
2013-08-05 14:41 ` Bruce Hill
2013-08-05 15:21 ` Marc Joliet
2013-08-05 15:37 ` Mick
2013-08-05 16:43 ` Stroller
2013-08-05 17:28 ` Alan McKinnon
2013-08-06 22:57 ` Stroller
2013-08-12 7:13 ` gevisz
2013-08-12 9:10 ` Alan McKinnon
2013-08-13 6:31 ` gevisz
2013-08-13 7:05 ` Alan McKinnon [this message]
2013-08-05 18:37 ` [gentoo-user] " Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5209DA9F.5030504@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox