Hello guys, i want to point my domains to my linux vps to create a website. normally u point ur domain with name servers ns1 and ns2. but i dont want this i want to point with dns records my problem is i added a A record like @ ip adress but http://example.com was working but www.example.com is not working so how do i fix this? do i need to add a A record point to www or a CNAME record pointing to www so in summary do i need to add records like https://imgur.com/a/vsE1w or like https://imgur.com/a/FV7IO ? thnx very much
You need to add more A record for www like this. Type Host Value A Record @ x.x.x.x A Record www x.x.x.x
You should ask your Registrar this question, because the answer about how exactly to do it will vary based on how their control panel is laid out. That said, the fellow above is correct, it sounds like you need to create a "www" DNS record entry as well