Hi!
I'm administrating a DNS domain and i'm having some problems. I own a domain, let's call it zwar.com. On the server i wish the domain would point to, i set up a DNS server, with A record, which binds zwar.com to the IP address:
Code:
zwar.com. IN SOA ns1.zwar.com. zwar.zwar.com (
;here are serial and other nessesery options )
zwar.com. IN NS ns1.zwar.com.
ns1.zwar.com. IN A <IP_address>
www.zwar.com IN CNAME ns1.zwar.com.
At the company, which registered my domain i changed the DNS servers to ns1.zwar.com. Now the thing is, that ns1.zwar.com perfectly works, but zwar.com does not and i don't know why. If i try to run nslookup from ns1.zwar.com:
Code:
nslookup - ns1.zwar.com
> www.zwar.com
i get correct answer. The same if i try to use dig from ns1.zwar.com:
Code:
dig @ns1.zwar.com www.zwar.com
I don't understand why is it not working in global scope (running just nslookup
www.zwar.org returns no results). Correct me please if i am wrong, but i believe that's the logic behind dns queries:
when i issue a DNS query the default DNS server gives me the address of the DNS server which is bound to the domain (the information about it is stored on DNS servers of the registration company), where my query is run once again and the server responds with the correct IP.
Illustrating it with an example: when i issue a dns query for
www.zwar.com (e.g. nslookup
www.zwar.com) the default dns server looks up it's tables and sees the domain zwar.com is registered by the company xy and redirects the query to their dns server, there the server redirects the query to the correct dns server, which is bound to the domain (in my case, this is the server i configured) and the last one tells which IP is bound to the domain name
www.zwar.com and issues the respond.
Please help if you can, the thing is really urgent, since the domain should be working for couple of days now, but i was still not able to set it up.