Question
Subdomian configuration not working
Hi,
I know I am doing something wrong. But I simply cannot figure it out.
Here's my DNS zone file:
$TTL 1800
@ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.balajisivaraman.com. (
1382809691 ; last update: 2013-10-26 17:48:11 UTC
3600 ; refresh
900 ; retry
1209600 ; expire
1800 ; ttl
)
IN NS NS1.DIGITALOCEAN.COM.
NS NS2.DIGITALOCEAN.COM.
NS NS3.DIGITALOCEAN.COM.
@ IN A 146.185.152.131
* CNAME @
Here's my NGINX sites file:
server {
listen 80;
root /usr/share/nginx/www/blog.balajisivaraman.com;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name balajisivaraman.com *.balajisivaraman.com;
}
Notice that I've mapped all subdomains to the same thing. That is because I cannot get individual subdomains working.
When I try to resolve balajisivaraman.com, here's what I get:
balajisivaraman.com. 619 IN A 146.185.152.131
All is well and good. But when I try to resolve one of the subdomains, here's the result.
www.balajisivaraman.com@8.8.4.4 (Default):
balajisivaraman.com. 619 IN SOA NS1.DIGITALOCEAN.com. hostmaster.balajisivaraman.com. 1382451000 3600 900 1209600 1800
Notice that it isn't getting resolved back to the A record properly.
Any ideas on what I have to change?
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×