<p>this is the stuff what should be done by webserver rather than by DNS. i,e, Apache rewrite will do that.</p>
<div class="gmail_quote">在 2011-9-28 下午10:29,"feralert" <<a href="mailto:feralert@gmail.com">feralert@gmail.com</a>>写道:<br type="attribution">> Hi all,<br>> <br>> I'm sure this has been asked trillions of times but since I couldn't<br>
> find any concrete answer/reference in google I am asking you guys in<br>> this list. Sorry if anyone thinks this a dumb question or something<br>> very obvious.<br>> <br>> The thing is that i want users redirected to '<a href="http://www.domain.com">www.domain.com</a>' even<br>
> when they just type the domain name '<a href="http://domain.com">domain.com</a>'.<br>> In order to do so I am not sure if its best to have one A RR for each<br>> or have an A RR for the domain and a CNAME RR pointing to '<a href="http://domain.com">domain.com</a>'<br>
> for '<a href="http://www.domain.com">www.domain.com</a>'.<br>> <br>> <br>> <a href="http://domain.com">domain.com</a> A 1.1.1.1<br>> <a href="http://www.domain.com">www.domain.com</a> A 1.1.1.1<br>
> <br>> OR<br>> <br>> <a href="http://domain.com">domain.com</a> A 1.1.1.1<br>> <a href="http://www.domain.com">www.domain.com</a> CNAME <a href="http://domain.com">domain.com</a><br>
> <br>> <br>> Any help appreciated.<br>> <br>> <br>> Thanks,<br>> Fred<br>> _______________________________________________<br>> Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
> <br>> bind-users mailing list<br>> <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>> <a href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</div>