DNS / Bind problem - easiest method to redirect a domain to another?
I've got two domains (for sake of example, domain A and domain B). Domain A resolves correctly to my web server. Domain B is just sitting collecting dust. I didn't set these domains up, a previous programmer at my job did.
How do I configure resolv.conf, named.conf and the zone file(s) correctly to have domain B redirect to domain A?
I've already set up httpd.conf so that any requests for the host name of domain A will redirect.
SERVFAIL indicates that the server failed to load the zone. Restart BIND again and check the error log (usually /var/log/messages) for any errors BIND might've generated while starting. There might be a problem with the zonefile that prevents it from being loaded.
(If I had to guess, I'd say that the problem is that you used the same zonefile for both domains, and the zonefile has the zone name hardcoded into it. The domainb.com zonefile must not say "domaina.com" on the left side of any records. Fix it by copying the zonefile and changing "domaina.com" to "domainb.com" as appropriate.)