Second-level domain as a primary NS server?

Is there anything in RFCs forbidding me from specifying something like this in NS records for mydomain.com (where both NS and the domain name are the same):

mydomain.com 1.2.3.4
anotherdomain.com


as compared to

ns.mydomain.com 1.2.3.4
anotherdomain.com


?
 
No problem at all (I guess). You can set whatever name Glue records you wish to have. But why not separating it with a simple name (on the same IP)?
 
I've heard something to the extent that to be able to function properly in this scenario, I'd basically have to modify the data for .com zone. Also SOA must not be the same as NS name. Not sure about those though.
 
I know all that of course. The question was whether it was possible to use NS equal to domain name as the primary when delegating said domain.
 
Back
Top