I have a domain registered through namecheap.com, and I have 2 nameservers for my domain (ns1, ns2.domain.com). Both nameservers are being pointed to my VPS IP address. I can access my VPS fine through IP, but not my domain. I am using webmin 1.6, and have my master zone all setup. Here is the records file:
; domain.com $TTL 3600 domain.com. IN SOA a.root-servers.net. firstname.lastname@example.org. ( 2013040805 3H 1H 1W 1D ) ; Name Server IN NS ns1.domain.com. IN NS ns2.domain.com. ; Mail Exchanger domain.com. IN A x.x.x.x www IN CNAME x.x.x.x ; Resource Record - veryfy the IP where your mails come from(disable if not needed) ; @ IN TXT "v=spf1 ip4:18.104.22.168/24 -all" ; EOF server1.domain.com. IN A x.x.x.x ns1.domain.com. IN A x.x.x.x ns2.domain.com. IN A x.x.x.x
x.x.x.x gets replaced with my VPS IP.
If I ping my nameservers, I get
unknown host ns1.domain.com.
Can anyone give me ideas about what is going on?