I have a website hosted on commercial G-Suite Google Sites where www version of website works properly, however, the non-www version does not work properly:
# wget www.fashioncodebeautysalon.com --2018-02-22 21:43:15-- http://www.fashioncodebeautysalon.com/ Resolving www.fashioncodebeautysalon.com (www.fashioncodebeautysalon.com)... 184.108.40.206 Connecting to www.fashioncodebeautysalon.com (www.fashioncodebeautysalon.com)|220.127.116.11|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html’ index.html [ <=> ] 19.78K --.-KB/s in 0.03s 2018-02-22 21:43:16 (671 KB/s) - ‘index.html’ saved  # wget fashioncodebeautysalon.com --2018-02-22 21:43:20-- http://fashioncodebeautysalon.com/ Resolving fashioncodebeautysalon.com (fashioncodebeautysalon.com)... 18.104.22.168 Connecting to fashioncodebeautysalon.com (fashioncodebeautysalon.com)|22.214.171.124|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2018-02-22 21:43:20 ERROR 404: Not Found.
To get into this state, in the GoDaddy console I simply created DNS A record and copied IP address that I got when accessing www version of website. Is this correct way to create DNS A record, because I don't know if Google guarantees that this particular IP address will remain constant over time? Is there some other specific IP address that I should have put instead?
Since I am getting 404, then I am inclined to think that problem is not with DNS, but rather with Google Sites where their web server expects the "Host:" value in HTTP request header to have the "www" prefix. However, I am unable to add such address mapping in Google Sites console because subdomain field must not be left blank as seen here:
What am I missing here?