I have a Ubuntu 12.04 server with Bind9 and Nginx. I have done many years of web development, and usually used Apache2. I just migrated from a Apache2 server to the new larger one running Nginx. All the domains are running except the CNAME records. They were running perfectly on the old server, but they don't resolve on the new one.
Here is my Zone record file with the domain changed to example.com:
$TTL 600 @ IN SOA 5.****.180. example.gmail.com. ( 2012123118 ; serial, todays date + todays serial # 7200 ; refresh, seconds 540 ; retry, seconds 604800 ; expire, seconds 86400 ) ; minimum, seconds ; mail 3600 A 5.****.180 ns 500 CNAME example.com. www 3600 A 5.****.180 example.com. 600 A 5.****.180 example.com. 3600 MX 10 mail.example.com. example.com. 3600 NS ns1.example.com. example.com. 3600 NS ns2.example.com.
Are there any issues here which would prevent the CNAME (ns) to point to my server? I can then catch the request with the nginx server without any hassles as that part is easy enough for me.