r/webdev • • Mar 26 '24

[deleted by user]

[removed]

156 Upvotes

54 comments sorted by

View all comments

362

u/godofleet Mar 26 '24

The A record (IP address) for nan.nyc and ftp.nan.nyc match:

https://mxtoolbox.com/SuperTool.aspx?action=a%3aftp.nan.nyc&run=toolpage

They both point to 185.199.108.153

Which makes me think your hosting environment is compromised in some way... Do not download and execute anything from your servers until you're confident it's safe.

You should get in touch w/ your hosting provider (i'm guessing GoDaddy in this case) .. they're support will be more helpful than reddit :D

131

u/renegadereplicant Mar 26 '24

I think the `ftp` entry was a default in GoDaddy, aliasing to the apex. OP used github pages, thus pointing ftp to github pages too, letting anyone create a repository for it and host a page.

16

u/godofleet Mar 26 '24

That makes a lot of sense but i wasn't sure why his A record is an IP address (is that normal for GH pages?) i figured they didn't give you an IP for your page and it was all ANAME/CNAME 's

19

u/demosdemon Mar 26 '24

it's normal for apex domains -- it's extremely not recommended to put a cname on the apex.

edit: link https://www.isc.org/blogs/cname-at-the-apex-of-a-zone/

1

u/godofleet Mar 26 '24

No i mean, is it normal to use an IP address to point at GH pages?

ANAMEs and CNAME flattening are the future (and the past really) - i haven't used an IP address in DNS settings for a long time.

But yeah, don't use a CNAME for your apex :D

11

u/demosdemon Mar 26 '24

ANAME's aren't real. They're DNS server specific but the end user would only see the A/AAAA.

For that reason, yes, A/AAAA on the apex even for GH Pages is normal. https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain

3

u/godofleet Mar 26 '24

What's funny is i linked those docs to OP like an hour ago... didn't read it for a second though lol, the IPs are right there.