301 is mainly the http header passed to the machines that the source URL now permanently belongs to the final URL.
Yes domain forwarding like the one in GoDaddy dashboard also uses http headers to redirect visitors to different domains, I believe you can select the headers to be passed along the redirection to be permanent 301 or temporary 302, you can clarify from their support.
Where as when you link your domain from your registrar to your hosting it usually happens using Name Servers on DNS registry, and not through 301.