help me to understand DNS
I have read lots of tutorial about dns, and i still dont understand some things :
I have bought a domain name : slvn.net
My webhost, whom i bought the domain, is hosting my domain.
So his server (dns.ovh.net).
=> it means that the "zone" declaration, and the SOA are int his named.conf file ??
Imagine i had a static IP and that i wanted to host my domain.
so I remove, the zone and SOA from dns.ovh.net.
then, I put this file on my computer.
but how. people would know my domain beacause nobody know my IP???
It works like this. There are root DNS servers that are the beginning of everything. When somebody wants to know where example.com is, they start looking at the root DNS servers. From there, other DNS servers are recommended until you get to the DNS server that actually has the zone stored on it (an authoritative server).
For you to be in the loop, you need a registrar to index your zone. You can do this directly, or through a 3rd party. The registrar would need to know the name of the zone you'd like to have, and the IP addresses of your DNS servers that are "authoritative" for that zone. This would include the primary server which actually has the zone on file, and usually a slave server which keeps itself up-to-date via the master server.
So when somebody makes a query for a domain that lies within YOUR zone, the process will eventually recommend YOUR dns server name and IP as you have provided them for an answer.
so i have understand :
ovh.com, (to whom i bought the domain) is also a registrar.
(that why he need to know which is the autoritative server)
when i choose, the DNS of ovh, ovh is the autoritative of my zone.
Yes, that oky
I don't know what ovh.com is. It may be a registrar and then it may be the 3rd party I told you of. From what you have said, it seems that ovh.com may get your zone name registered FOR you, and will host that zone FOR you IF you want them to. Otherwise, you tell them the DNS servers that WILL host the zone.
yes ovh is a registrar. and I can also use it to host my domain
(i can t host my domain myself because i have de dynamique IP)
You could very simply host your own domain. The first thing you would do is register your static Ip address as a anme server this done via your registrar and us free. you would then update your domain to use the name server you registered as its primary or first listed name server. you would then configure your DNS server to provide resolution of your domain.