My domain is still not connecting to my linode.
I got my domain on namecheap.com. There I set the Nameservers option to custom DNS and added servers:
- ns1.linode.com
- ns2.linode.com
- ns3.linode.com
- ns4.linode.com
- ns5.linode.com
In Linode, I added a domain in the Domains sidetab (wrote in the bought domain, added my personal email address for SOA email address and clicked create).
I added three records to the A/AAAA records. Two with the IPv4 from Networking tab from my linode (one without Hostname, one with Hostname "www") and one with IPv6 type SLAAC.
When I use the default reverse DNS (http://li2052-98.members.linode.com/), my site works fine. When I use my bought domain, it doesn't.
curl --head http://www.marsbuggy.me/
curl: (6) Could not resolve host: www.marsbuggy.mecurl --head http://marsbuggy.me/
HTTP/1.1 404 Not Found
Date: Sun, 19 Apr 2020 19:54:46 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Type: text/html; charset=iso-8859-1curl --head http://li2052-98.members.linode.com/
HTTP/1.1 200 OK
4 Replies
As was pointed out in a previous post, generally, it takes 48 hours for all that to propagate across the internet.
-- sw
At Sun Apr 19 20:57:15 PDT 2020, I can ping(8) & ping6(8) your Linode using the two domain names you gave in your post (my ISP is in Seattle). However, I get the same results as you with curl(1).
I don't think DNS is your problem… I think your apache2 configuration is not quite right.
-- sw
P.S. You need to add an A/AAAA record for www and your Linode's IPv6 address:
stevewi:~ $ ping6 marsbuggy.me
PING6(56=40+8+8 bytes) <redacted> --> <redacted>
16 bytes from <redacted>, icmp_seq=0 hlim=54 time=167.441 ms
16 bytes from <redacted>, icmp_seq=1 hlim=54 time=168.131 msstevewi:~ $ ping6 www.marsbuggy.me
ping6: getaddrinfo -- nodename nor servname provided, or not known
@stevewi, yes, my apache2 configuration was not right.
I changed the apache2.conf from
ServerName li2052-98.members.linode.com
to
ServerName marsbuggy.me
I also added "marsbuggy.me" to ALLOWED_HOSTS in settings.py (I use Django). Then I ran:
systemctl reload apache2
It works now.
Thanks!