i am confused since i tried to name my server which virtualmin run onit with any given name that come to my mind, but virtualmin said unable to resolve hosting name.
i do have some domain without hosting service, not yet, and confuse how to glue record or a record them to my server.
You need to have a hostname as: server1.mydomain.com
you would register the nameserver at your registrar for that domain or point the A record of the domain to your server
server1 A 123.123.123.123
yes. In that case the server1.mydomain.com would have an A Record pointing to your static IP and you would use the nameserver from your registrar.
Another scenario is to have 2 nameservers with 2 static IP’s and register those nameservers (ns1.mydomain.com and ns2.mydomain.com) at your registrar so virtualmin could control the records in your zonefile.