I cannot see to get to my site by domain name. I can get to it by IP address fine. I am guessing that the problem is with the Bind configuration file... or maybe Apache?
This works:
Code:
$ dig @dnsserver linuxquestions.org
Which means that DNS is working.
When I type in the browser the IP this works:
Code:
http://192.168.69.221/a_test_website
But this does not work:
Code:
http://mytestwebsite.com
Here is the db.atestsite.com file.
Code:
; BIND data file for mytestsite.
;
$ORIGIN dynamicdnsname.here.com
$TTL 604800
;Name of the primary ns and the email of the administrator.
@ IN SOA ns.mytestsite.com. admin.mytestsite.com. (
2012052806 ;Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
;Tells dns servers on the Internet the primary ns server that have authorit y
IN NS ns.mytestsite.com.
;Anchor records that point to your domain.
;The address localhost.mytestsite.com can only be accessed by the server itself.
localhost IN A 127.0.0.1
;The domain name. The number should be the Public IP address.
;This is the address they ping or browse to http://mytestsite.com.
mytestsite.com. IN A 201.133.69.25
;Pinging ns.mytestsite.com. would return the public IP address.
ns IN A 192.168.69.221
;Browsing www.mytestsite.com. would take the viewer to the site.
www IN A 192.168.69.221
;Makes http://www.mytestsite.com. the same as http://forum.mytestsite.com.
forum IN CNAME www