Wei Yu
2007-Jul-07 04:58 UTC
[CentOS] Simple Question about Resolving Names without suffix with bind
Hi I am trying to use Bind as named. And I have successfully set up a chrooted bind. Anyway, I cannot have it resolve "www" directly. For example, when I am using nslookup, when enter www.example.com, it will resolve. But when enter www, it will not. I want to have www resolve to www.example.com, what should I do? I have already set $ORIGIN in the zone file, but it does not work. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070707/c842ced9/attachment.html>
Garrick Staples
2007-Jul-07 05:36 UTC
[CentOS] Simple Question about Resolving Names without suffix with bind
On Sat, Jul 07, 2007 at 12:58:03PM +0800, Wei Yu alleged:> Hi > > I am trying to use Bind as named. And I have successfully set up a chrooted > bind. > > Anyway, I cannot have it resolve "www" directly. > > For example, when I am using nslookup, when enter www.example.com, it will > resolve. But when enter www, it will not. > I want to have www resolve to www.example.com, what should I do? I have > already set $ORIGIN in the zone file, but it does not work.That is something you set in your own client resolver libraries. Put "search example.com" into /etc/resolv.conf. -- Garrick Staples, GNU/Linux HPCC SysAdmin University of Southern California Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070706/d466a0e4/attachment.sig>
Gregory P. Ennis
2007-Jul-08 03:24 UTC
[CentOS] Simple Question about Resolving Names without suffix with bind
On Sat, 2007-07-07 at 12:58 +0800, Wei Yu wrote:> Hi > > I am trying to use Bind as named. And I have successfully set up a > chrooted bind. > > Anyway, I cannot have it resolve "www" directly. > > For example, when I am using nslookup, when enter www.example.com, it > will resolve. But when enter www, it will not. > I want to have www resolve to www.example.com, what should I do? I > have already set $ORIGIN in the zone file, but it does not work. > > Thanks.If you have created a zone file for example.com in /var/named/chroot/var/named/example.zone All you need to do is to add the entry below to your zone file www A ###.###.###.### This is what I did anyway, and it is working great!! Greg