I wouldn't use whois explicitly to determine operations about DNS because it's not really used when DNS is concerned (although some registrars put the settings for name server delegation information there) ... Instead I would grab the BIND tools for your platform, and follow along.
As this is easier to explain using real domain names, let's resolve the host ip for for my domain huggard.info.
All DNS in the world is actually rooted in the '.' domain. Technically every DNS query starts at the 13 servers, named {a-m}.root-servers.net
. (In the real world caching and prior knowledge help eliminate these steps, but for sake of our example, we're assuming we only know how to get to one of these root servers). So we try to ask there but get no answer (1), instead these servers say, your question is part of the 'info.' zone, it's name servers are over there. So we ask those servers over there, Hey what is the ip of huggard.info? And again they say I dunno,(2) but it should be part of the 'huggard.info.' zone, you want to talk to other name servers over the hill yonder. Finally we ask the 3rd set of name servers, what's the ip of huggard.info and they say "I totally know that! It's currently these IP addresses!" (3).
But wait! a0.info.afilias-nst.info is obviously part of the 'info.' zone... and ns1.huggard.info is obviously part of the 'huggard.info.' zone... How the heck did that work? The answer are magical glue records!
Somewhere in your registrar's tools, when your domain was set to these nameservers, provided A records that were given up the chain to your company's parent zone. (In my case Dreamhost put 4 A records into the info zone for me along with my normal NS delegation records. Their tooling actually hides this functionality in their whois update utility, and display it only after they detect that I'm using nameservers from within my zone when I'm updating the same).
Commands to follow along are below! norecurse tells dig to only use information from that name server and not attempt to resolve further. Pay attention to the authority and additional sections when trying for yourself with your domain or mine.
Hope this helps explain what is going on and why changing the NS records on your server doesn't do too much :)
1. dig +norecurse @a.root-servers.net A huggard.info
2. dig +norecurse @a0.info.afilias-nst.info. A huggard.info
3. dig +norecurse @ns1.huggard.info. A huggard.info