I want to know where to set domain nameserver in infinityfree

IF can only set MX and SPFrecord. Get premium hosting if you need more.
For free solution, how about using CloudFlare?
Below is the guide