How does subdomain forward by domain registrar work

domain-name-systemdomain-registrargodaddysubdomain

Can you please help me understand how this particular functionality works:

I have a domain: example.com, it's registered with GoDaddy.
its nameservers are set to linode: ie. ns1.linode.com, ns2.linode.com
But at the same time, I can setup a subdomain redirect on GoDaddy and it works.
So, I can create a 301 redirect from www. -> non www.

Can you please tell me how GoDaddy can do this?

Best Answer

Just because your DNS is hosted by dyndns doesn't mean that GoDaddy isn't doing the web hosting. So you can tell your GoDaddy webhosting to perform the 301 redirect as long as the DNS records for www are pointing at GoDaddy's web servers.