I'm facing a strange issue, at least to me, that I can't crack. My domain is fully propagated according to whatsmydns.net:
Yet dig won't give me an ip:
; <<>> DiG 9.16.1-Ubuntu <<>> defactocannabis.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 5692 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;defactocannabis.com. IN A ;; Query time: 284 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) ;; WHEN: Tue Mar 15 01:26:04 +04 2022 ;; MSG SIZE rcvd: 48
I checked with my registrar (Namecheap) and they told me everything is okay on their end.
netstat -taupen | grep LISTEN reports:
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 114 36844 3300/redis-server tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 101 21112 686/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 24658 815/sshd: /usr/sbin tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 113 25942 884/mysqld
tcp6 0 0 ::1:6379 :::* LISTEN 114 36845 3300/redis-server 1 tcp6 0 0 :::80 :::* LISTEN 0 68578 8381/apache2
tcp6 0 0 :::22 :::* LISTEN 0 24670 815/sshd: /usr/sbin
So I can see the server is listening on port 80 for ipv6, but I can't see it mentioned for ipv4.
I've tried disabling both the cloud firewall and UFW (both are the same). This is UFW:
22/tcp ALLOW 18.104.22.168
25/tcp ALLOW 22.214.171.124
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
443/udp ALLOW Anywhere
53 ALLOW Anywhere
80/udp ALLOW Anywhere
3306 ALLOW Anywhere
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
443/udp (v6) ALLOW Anywhere (v6)
53 (v6) ALLOW Anywhere (v6)
80/udp (v6) ALLOW Anywhere (v6)
3306 (v6) ALLOW Anywhere (v6)
I honestly can't figure out what's wrong. If I go to the ip address (http://126.96.36.199/) it's working perfectly. My DNS propagated yesterday, but I still can't get dig to report the appropriate IP or my browsers (Chrome, Chromium, Firefox) to display the page.
Further Information: Earlier today I booted to my live usb and tried going to the website by domain name in firefox, and it worked. So I thought it must my OS (after about an hour of learning to flush DNS caches, etc). I reinstalled the OS. Now it still isn't working! I reset my router. No go. I tried four different VPN nodes. Nothing.
I would really appreciate assistance solving this problem because it is beyond my technical knowledge, and I don't know what to do anymore.
Note The other thing is when I type http://188.8.131.52 into Firefox, it automatically changes to my domain name and I get the error the website can't be found...