Authoritative DNS for subdomain with dynamic IP

Is it possible to have an authoritative dns server that I host on my server that has a dynamic IP?

I use a dynamic dns client to update my IP with namecheap but want to have a DNS server I control as well. Is it possible for my subdomain ns1.sub.example.com to be on my server?

I would use the dynamic dns client to update ns1.sub.example.com

Update:
Looks like it works.
Dynamic DNS updates A record for main.example.com
NS points to subdomain and the name is the A record main.example.com
all queries are being forwarded to my dns server.

Go to Source
Author: uid500