CNAME record for the root of the domain

Matt Rowley matt at
Mon Oct 17 15:09:55 UTC 2011

> I wan to point "" to the same ip as "", but I don't want to manually change the A entry when change its address.

Maybe I'm misunderstanding what you're after... but if you're ok with all of the records in the zone being identical, you could point both zones to the same file in your named.conf; you just need to keep it generic by using the @ origin symbol instead of referencing the zone name.  For example,

@		IN SOA (
				2011010101 ; serial
				7200       ; refresh (2 hours)
				3600       ; retry (1 hour)
				604800     ; expire (1 week)
				7200       ; minimum (2 hours)
		IN	A

www		IN	CNAME	@



More information about the bind-users mailing list