What operating system are you running?
You need to have DNS running on your name servers as well as proper records for your domain. On your registrar you need to point the SOA (Server of Authority) to your self hosted machine.
We would need more information to go into a step by step but your registar should have a FAQ or How to guide on this.
Get back to me if you want more specific help for your platform.