<div>Yes, it works.</div>
<div>The DNS search suffix matters.</div>
<div>Thank you all!<br><br> </div>
<div><span class="gmail_quote">On 7/8/07, <b class="gmail_sendername">Steven Haigh</b> <<a href="mailto:netwiz@crc.id.au">netwiz@crc.id.au</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 08/07/2007, at 1:24 PM, Gregory P. Ennis wrote:<br><br>> On Sat, 2007-07-07 at 12:58 +0800, Wei Yu wrote:
<br>>> Hi<br>>><br>>> I am trying to use Bind as named. And I have successfully set up a<br>>> chrooted bind.<br>>><br>>> Anyway, I cannot have it resolve "www" directly.<br>>>
<br>>> For example, when I am using nslookup, when enter <a href="http://www.example.com">www.example.com</a>, it<br>>> will resolve. But when enter www, it will not.<br>>> I want to have www resolve to 
<a href="http://www.example.com">www.example.com</a>, what should I do? I<br>>> have already set $ORIGIN in the zone file, but it does not work.<br>>><br>>> Thanks.<br>><br>> If you have created a zone file for 
<a href="http://example.com">example.com</a><br>> in /var/named/chroot/var/named/example.zone<br>><br>> All you need to do is to add the entry below to your zone file<br>> www     A       ###.###.###.###<br>>
<br>> This is what I did anyway, and it is working great!!<br><br>Not quite.... This will only add a www record to your domain... What<br>I think the original poster wants is to use the DNS Seach suffix<br>functions of DHCP.
<br><br>This will add the prefix automatically when the host tries to search<br>for a DNS entry...<br><br>$ cat /etc/resolv.conf<br>search <a href="http://example.com">example.com</a><br>nameserver x.x.x.x<br>nameserver x.x.x.x
<br><br>This will get you the desired results. You set it in your dhcpd.conf<br>file as so:<br><br>        option domain-name              "<a href="http://example.com">example.com</a>";<br><br>--<br>Steven Haigh
<br><br>Email: <a href="mailto:netwiz@crc.id.au">netwiz@crc.id.au</a><br>Web: <a href="http://www.crc.id.au">http://www.crc.id.au</a><br>Phone: (03) 9017 0597 - 0404 087 474<br><br><br><br><br>_______________________________________________
<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>
<br clear="all"><br>-- <br>Zijing 15# 1404B Tsinghua Univ.<br>+86 -10 -51537235<br>Zig