The officially official Devuan Forum!

You are not logged in.

#1 2022-11-06 22:17:24

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

dns error on certain webpages

Hi,

today I got a strange issue on my Devuan Chimaera box which I had encountered and solved on Alpine a few weeks ago.

On qutebrowser and Falkon, when I go the the page https://lists.alpinelinux.org/ I get  a '404 Not Found nginx' error.
I also get an error on https://distrowatch.com/ 'Bad Request Your browser sent a request that this server could not understand.'
On waterfox, distrowatch works fine but lists.alpinelinux.org doesn't.
On Dillo, both lists.alpinelinux.org and distrowatch.com work fine.

Now, on Alpine, I solved the problem by installing dhclient and creating the file /etc/dhcp/dhclient.conf with the code:

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, domain-search, host-name,
	dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
	netbios-name-servers, netbios-scope, interface-mtu,
	rfc3442-classless-static-routes, ntp-servers;
	
prepend domain-name-servers 8.8.8.8, 8.8.4.4;

On Devuan dhclient is already there, so I tried to append the 'prepend domain-name-servers 8.8.8.8, 8.8.4.4;' line but to no effect.
Note that at the time, on Devuan the pages giving me errors worked fine. Except for an update/upgrade, I didn't change anything.

So, here what I have tried so far:

I tried on another Chimaera fresh install on my laptop = same error
I tried from Daedalus live cd with Firefox                      = same error
I tried from Slitaz frugal with tazweb                             = pages work fine

Here some more output:

alpine linux list page

dig https://lists.alpinelinux.org/lists

; <<>> DiG 9.18.4-2~bpo11+1-Debian <<>> https://lists.alpinelinux.org/lists
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 3831
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;https://lists.alpinelinux.org/lists. IN	A

;; AUTHORITY SECTION:
.			86398	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2022110601 1800 900 604800 86400

;; Query time: 12 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Sun Nov 06 13:18:37 PST 2022
;; MSG SIZE  rcvd: 139
$ delv https://lists.alpinelinux.org/
;; validating ./DNSKEY: got insecure response; parent indicates it should be secure
;; insecurity proof failed resolving './DNSKEY/IN': 192.168.1.254#53
;; resolution failed: ncache nxdomain
; negative response, fully validated
; https://lists.alpinelinux.org/.	10800 IN \-ANY	;-$NXDOMAIN
; . SOA a.root-servers.net. nstld.verisign-grs.com. 2022110601 1800 900 604800 86400
; . RRSIG SOA ...
; . RRSIG NSEC ...
; . NSEC aaa. NS SOA RRSIG NSEC DNSKEY
; org. RRSIG NSEC ...
; org. NSEC organic. NS DS RRSIG NSEC
$ delv https://lists.alpinelinux.org/
;;   validating ./SOA: got insecure response; parent indicates it should be secure
;;   validating ./SOA: got insecure response; parent indicates it should be secure
;; no valid RRSIG resolving 'org//DS/IN': 192.168.1.254#53
;; broken trust chain resolving 'https://lists.alpinelinux.org//A/IN': 192.168.1.254#53
;; resolution failed: broken trust chain
$ curl https://lists.alpinelinux.org/
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
$ ping https://lists.alpinelinux.org/
ping: https://lists.alpinelinux.org/: Name or service not known

alpine linux website

$ ping alpinelinux.org
PING alpinelinux.org(2604:1380:2002:4001::4 (2604:1380:2002:4001::4)) 56 data bytes
64 bytes from 2604:1380:2002:4001::4 (2604:1380:2002:4001::4): icmp_seq=1 ttl=47 time=170 ms
$ curl https://alpinelinux.org/
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Alpine Linux">
        <title>index | Alpine Linux</title>

        <link rel="stylesheet" href="/css/pure-min.css" />
        <link rel="stylesheet" href="/css/grids-responsive-min.css" />
        <link rel="stylesheet" href="/css/font-awesome.min.css" />
        <link rel="stylesheet" href="/css/styles.css" />
        <link rel="shortcut icon" href="/alpine-logo.ico" />
    </head>
    <body>
        <div id="wrapper">
            <header class="pure-g" id="header">
                <div class="pure-u-1 pure-u-lg-4-24">
                    <div class="logo">
                        <a href="/"><img src="/alpinelinux-logo.svg" class="pure-img" alt="" /></a>
                    </div>
                </div>
                <input type="checkbox" id="menu-toggle-cb">
                <label id="menu-toggle" for="menu-toggle-cb" onclick><s class="bar"></s><s class="bar"></s><s class="bar"></s></label>
                <div class="pure-u-1 pure-u-lg-20-24 box-relative menu-wrapper">
                    <nav class="pure-menu pure-menu-horizontal menu-local">
                        <ul class="pure-menu-list">
                            <li class="pure-menu-item"><a href="/about" class="pure-menu-link">About</a></li>
                            <li class="pure-menu-item"><a href="/downloads" class="pure-menu-link">Downloads</a></li>
                            <li class="pure-menu-item"><a href="/releases" class="pure-menu-link">Releases</a></li>
                            <li class="pure-menu-item"><a href="/community" class="pure-menu-link">Community</a></li>
                            <li class="pure-menu-item"><a href="/sponsors" class="pure-menu-link">Sponsors</a></li>
                        </ul>
                    </nav>
                    <nav class="pure-menu pure-menu-horizontal menu-external">
                        <ul class="pure-menu-list">
                            <li class="pure-menu-item"><a href="https://docs.alpinelinux.org" class="pure-menu-link">docs</a></li>
                            <li class="pure-menu-item"><a href="https://wiki.alpinelinux.org" class="pure-menu-link">wiki</a></li>
                            <li class="pure-menu-item"><a href="https://gitlab.alpinelinux.org" class="pure-menu-link">git</a></li>
                            <li class="pure-menu-item"><a href="https://gitlab.alpinelinux.org/alpine/aports/-/issues" class="pure-menu-link">issues</a></li>
                            <li class="pure-menu-item"><a href="https://pkgs.alpinelinux.org" class="pure-menu-link">packages</a></li>
                            <li class="pure-menu-item"><a href="https://mirrors.alpinelinux.org" class="pure-menu-link">mirrors</a></li>
                            <li class="pure-menu-item"><a href="https://security.alpinelinux.org" class="pure-menu-link">security</a></li>
                        </ul>
                    </nav>
                </div>
            </header>
            <div class="banner">
                <div class="banner-content">
                    <h1>Small. Simple. Secure.</h1>
                    <h3>Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.</h3>
                </div>
            </div>
            <div id="content" class="index">
                <div class="pagedate">
                    <time datetime=""></time>
                </div>
                <div class="pure-g">
   
    <div class="pure-u-1 pure-u-md-1-2">
        <div class="l-box">
            <h2>
                <a href="/atom.xml" class="atom"><i class="fa fa-rss"></i></a>
                Alpine News
            </h2>
            <ul class="home-list">
                <li><time>2022-08-09</time>  <a href="posts/Alpine-3.13.12-3.14.8-3.15.6-3.16.2-released.html">Alpine 3.13.12, 3.14.8, 3.15.6 and 3.16.2 released</a></li>
                <li><time>2022-07-19</time>  <a href="posts/Alpine-3.13.11-3.14.7-3.15.5-released.html">Alpine 3.13.11, 3.14.7 and 3.15.5 released</a></li>
                <li><time>2022-07-18</time>  <a href="posts/Alpine-3.16.1-released.html">Alpine 3.16.1 released</a></li>
                <li><time>2022-07-14</time>  <a href="posts/Alpine-edge-signing-keys-rotated.html">Alpine Linux edge signing keys rotated</a></li>
                <li><time>2022-05-23</time>  <a href="posts/Alpine-3.16.0-released.html">Alpine 3.16.0 released</a></li>
                <li><time>2022-04-04</time>  <a href="posts/Alpine-3.12.12-3.13.10-3.14.6-3.15.4-released.html">Alpine 3.12.12, 3.13.10, 3.14.6 and 3.15.4 released</a></li>
                <li><time>2022-03-28</time>  <a href="posts/Alpine-3.12.11-3.13.9-3.14.5-3.15.3-released.html">Alpine 3.12.11, 3.13.9, 3.14.5 and 3.15.3 released</a></li>
                <li><time>2022-03-23</time>  <a href="posts/Alpine-3.15.2-released.html">Alpine 3.15.2 released</a></li>
                <li><time>2022-03-17</time>  <a href="posts/Alpine-3.12.10-3.13.8-3.14.4-released.html">Alpine 3.12.10, 3.13.8 and 3.14.4 released</a></li>
                <li><time>2022-03-16</time>  <a href="posts/Alpine-3.15.1-released.html">Alpine 3.15.1 released</a></li>
            </ul>
            <a class="pure-button read-more" href="/posts">Read more</a>
        </div>

    </div>

    <div class="pure-u-1 pure-u-md-1-2">
        <div class="l-box">
            <h2>
                <a href="https://gitlab.alpinelinux.org/alpine/aports" class="cgit">
                    <i class="fa fa-git "></i>
                </a>
                Latest development
            </h2>
            <ul class="home-list">
                <li><time datetime="2022-11-06T21:41:33+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=a11f31670c86cbf0655a0ad5724b5fd30154f1ed">testing&#x2F;php7-pecl-igbinary: upgrade to 3.2.11</a></li>
                <li><time datetime="2022-11-06T21:41:07+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=7805d2911f8c124c2c5838ec521e32cb67a5a380">testing&#x2F;php8-pecl-igbinary: upgrade to 3.2.11</a></li>
                <li><time datetime="2022-11-06T21:40:35+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=6b14763a93e44ae193c1884b9aa36db276620be4">testing&#x2F;php82-pecl-igbinary: upgrade to 3.2.11</a></li>
                <li><time datetime="2022-11-06T21:40:06+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=974c75bdd44af0ae737a1c83926f353d2c79e76a">community&#x2F;php81-pecl-igbinary: upgrade to 3.2.11</a></li>
                <li><time datetime="2022-11-06T20:19:06+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=d3a307eaa18940711b507972fd0ad613ad75b363">community&#x2F;php81-pecl-igbinary: upgrade to 3.2.10</a></li>
                <li><time datetime="2022-11-06T20:19:06+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=c996011c7ecaa5751351fb1a74b4a772253bcb40">testing&#x2F;php82-pecl-igbinary: upgrade to 3.2.10</a></li>
                <li><time datetime="2022-11-06T20:19:06+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=51af7764ee5f3ddbce1c6502b97566255bab79ac">testing&#x2F;php8-pecl-igbinary: upgrade to 3.2.10</a></li>
                <li><time datetime="2022-11-06T20:19:06+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=7e1f46e51a4d39f49dac88283a65612e2ea5b28f">testing&#x2F;php7-pecl-igbinary: upgrade to 3.2.10</a></li>
                <li><time datetime="2022-11-06T20:13:36+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=ceea2c91524f8256d392260d489647346777f02e">community&#x2F;zabbix: upgrade to 6.2.4</a></li>
                <li><time datetime="2022-11-06T18:39:44+00:00">2022-11-06</time>  <a href="http://git.alpinelinux.org/aports/commit/?id=8d2c7b1891416741111f1dc99f8d0d19d612b476">community&#x2F;py3-platformdirs: upgrade to 2.5.3</a></li>
            </ul>
            <a class="pure-button read-more" href="https://gitlab.alpinelinux.org/alpine/aports/-/commits/master">Read more</a>
        </div>
    </div>

</div> <!-- end pure-g -->

            </div> <!-- end content -->
            <footer>&copy; Copyright 2022 Alpine Linux Development Team all rights reserved | <a href="/privacy-policy.html">Privacy Policy</a></footer>
        </div> <!-- end wrapper -->
    </body>
</html>

distrowatch

$ dig https://distrowatch.com/

; <<>> DiG 9.18.4-2~bpo11+1-Debian <<>> https://distrowatch.com/
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 29820
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;https://distrowatch.com/.	IN	A

;; AUTHORITY SECTION:
.			86383	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2022110601 1800 900 604800 86400

;; Query time: 8 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Sun Nov 06 14:29:46 PST 2022
;; MSG SIZE  rcvd: 128
$ delv https://distrowatch.com/
;;   validating ./SOA: got insecure response; parent indicates it should be secure
;; insecurity proof failed resolving 'https://distrowatch.com//A/IN': 192.168.1.254#53
;; resolution failed: ncache nxdomain
; negative response, fully validated
; https://distrowatch.com/. 10800	IN	\-ANY	;-$NXDOMAIN
; . SOA a.root-servers.net. nstld.verisign-grs.com. 2022110601 1800 900 604800 86400
; . RRSIG SOA ...
; . RRSIG NSEC ...
; . NSEC aaa. NS SOA RRSIG NSEC DNSKEY
; com. RRSIG NSEC ...
; com. NSEC comcast. NS DS RRSIG NSEC

curl gave me an output a mile long.

$ ping https://distrowatch.com/
ping: https://distrowatch.com/: Name or service not known

Any suggestions as to what I could do?

Last edited by amc252 (2022-11-06 22:36:57)

Offline

#2 2022-11-07 11:04:44

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: dns error on certain webpages

dig and ping only work for domain names, not HTTP urls...

so try :
dig lists.alpinelinux.org
ping lists.alpinelinux.org
dig distrowatch.com
ping distrowatch.com
etc... 

you can also try
dig distrowatch.com @8.8.8.8
and post output here...

nothing seems wrong above.. curl which works with urls seems to work just fine. an "output a mile wrong" probably seems correct...
your `curl https://lists.alpinelinux.org` shows 404 (works fine here), which mean it resolves succesfully, but didn't find the resource..

in general i would say you're experiencing network issues. or clock is failing, or something was manually changed in /etc/hosts or local resolver or router or isp or....

Offline

#3 2022-11-07 15:13:21

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: dns error on certain webpages

amc252 wrote:

On Devuan dhclient is already there, so I tried to append the 'prepend domain-name-servers 8.8.8.8, 8.8.4.4;' line but to no effect.

What does "no effect" mean, exactly? Are you sure Devuan is using dhclient? Did you try disabling it and populating /etc/resolv.conf manually instead?

If accessing Google's DNS directly fixes your problem then the problem probably lies with the router or ISP, as xinomilo notes.


Brianna Ghey — Rest In Power

Offline

#4 2022-11-08 01:18:35

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Re: dns error on certain webpages

Hi,
thanks for the feedback.

I spoke to my my internet provider who made a reconfiguration of my modem.
Now I can access lists.alpinelinux.org, but I still get an error on distrowatch. (Bad Request
Your browser sent a request that this server could not understand.) on Qutebrowser and Falkon, but it works fine on Waterfox.

$ ping distrowatch.com
PING distrowatch.com(2a00:9080:1:58a::1) 56 data bytes
64 bytes from 2a00:9080:1:58a::1: icmp_seq=1 ttl=48 time=175 ms
$ dig distrowatch.com @8.8.8.8

; <<>> DiG 9.18.4-2~bpo11+1-Debian <<>> distrowatch.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53423
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;distrowatch.com.		IN	A

;; ANSWER SECTION:
distrowatch.com.	10144	IN	A	82.103.129.71

;; Query time: 11 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Mon Nov 07 17:09:34 PST 2022
;; MSG SIZE  rcvd: 60

This is my default nameserver

$ dig distrowatch.com @192.168.1.254

; <<>> DiG 9.18.4-2~bpo11+1-Debian <<>> distrowatch.com @192.168.1.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28168
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;distrowatch.com.		IN	A

;; ANSWER SECTION:
distrowatch.com.	9457	IN	A	82.103.129.71

;; Query time: 8 msec
;; SERVER: 192.168.1.254#53(192.168.1.254) (UDP)
;; WHEN: Mon Nov 07 17:14:17 PST 2022
;; MSG SIZE  rcvd: 49
$ delv https://distrowatch.com/
;;   validating ./SOA: got insecure response; parent indicates it should be secure
;;   validating ./SOA: got insecure response; parent indicates it should be secure
;; no valid RRSIG resolving 'com//DS/IN': 192.168.1.254#53
;; broken trust chain resolving 'https://distrowatch.com//A/IN': 192.168.1.254#53
;; resolution failed: broken trust chain

Last edited by amc252 (2022-11-08 01:25:12)

Offline

#5 2022-11-08 11:03:19

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: dns error on certain webpages

so dns looks fine now and it's just a browser problem. better send a bug report in those browser projects.

Offline

#6 2022-11-08 18:17:17

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Re: dns error on certain webpages

It seems odd that two separate browsers all of a sudden would present the same error (without having been upgraded). Of course, they are both based on Qtwebengine, so that might be a clue.
Yet, if both Qutebrowser and Falkon had problems displaying a page like Distrowatch, I'd think someone would have already noticed.
I'm, still inclined to think I messed something up somehow.

Offline

Board footer