Almir Karic escreveu: > On Wed, Jul 23, 2008 at 01:17:04PM -0700, Parvinder Bhasin wrote: > >> Hi, >> >> I am stuck at this situation: >> >> Where I have a domain: abc.com : >> >> I would like to have user who type http://abc.com (without the www) >> redirected to a a different site for example : www.xyz.com >> Redirection for www.abc.com to www.xyz.com works fine. >> >> I have tried CNAME-ing abc.com to www.xyz.com but that wouldn't work (I >> can see it why). >> Is there a way to do this in BIND zone configuration? >> > > with this in my zone i get to google.com when i try to access > test.mydomain.org: > > test IN CNAME google.com. > > > This works, yes. But you can't have a CNAME that has the same name as the zone. It would conflict with the SOA and with the NS entries. Parvinder will have to use it's scripts to make this work, as he can't use http redirect.
My regards, -- Giancarlo Razzolini http://lock.razzolini.adm.br Linux User 172199 Red Hat Certified Engineer no:804006389722501 Verify:https://www.redhat.com/certification/rhce/current/ Moleque Sem Conteudo Numero #002 OpenBSD Stable Ubuntu 8.04 Hardy Heron 4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85