Mostly everything is fine … am surfing the web fine and nothing seems untoward. But I noticed a site kresd would not resolve, but the upstream server does. So tried some diagnostics:
Now I notice it on another site out of the blue. Let’s look at the second:
basic domain name is fine:
# dig eyebuydirect.com
; <<>> DiG 9.11.19 <<>> eyebuydirect.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36112
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;eyebuydirect.com. IN A
;; ANSWER SECTION:
eyebuydirect.com. 86400 IN A 107.154.105.49
eyebuydirect.com. 86400 IN A 107.154.106.49
;; Query time: 26 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Mar 10 21:42:11 AEDT 2021
;; MSG SIZE rcvd: 77
But a http request tot hat redirects to the www. subdomain and:
# dig www.eyebuydirect.com
; <<>> DiG 9.11.19 <<>> www.eyebuydirect.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 34484
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.eyebuydirect.com. IN A
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Mar 10 21:42:36 AEDT 2021
;; MSG SIZE rcvd: 49
SERVFAIL!
To find my upstream DNS I can run ubus call network.interface.wan status
and see:
"dns-server": [
"203.12.160.35",
"203.12.160.36"
],
and so:
# dig www.eyebuydirect.com @203.12.160.35
; <<>> DiG 9.11.19 <<>> www.eyebuydirect.com @203.12.160.35
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32030
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.eyebuydirect.com. IN A
;; ANSWER SECTION:
www.eyebuydirect.com. 3017 IN CNAME vykgy.x.incapdns.net.
vykgy.x.incapdns.net. 30 IN A 107.154.128.49
;; Query time: 15 msec
;; SERVER: 203.12.160.35#53(203.12.160.35)
;; WHEN: Wed Mar 10 21:50:48 AEDT 2021
;; MSG SIZE rcvd: 99
The upstream server resolves it fine. What is kresd doing suddenly. Only yesterday it was forwarding such requests to the upstream servers. OK so I clear DNS cache, by restarting kresd: `/etc/init.d/resolver restart’ and no change, still SERVFAIL.
This impacts at lease: www.eyebuydirect.com and www.spiceworks.com currently but nothing else I’ve been using … it seems very targetted.