Oh, ic got ur point thanks! I never add the search options on resolv.conf, now I did and I can resolve only by hostname.
-- Thanks, Louie -----Original Message----- From: Haim Ashkenazi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:01 PM To: Debian User Subject: Re: Dns prob / resolving.. On Tue, 27 May 2003 10:10:30 +0800 "Miranda, Joel Louie M" <[EMAIL PROTECTED]> wrote: > Hello, > > I forgot about how to resolve host by names on bind9 dns. > > Ex: I want to resolv only the name w/o the domain when I type.. > > Linux> nslookup > Nslookup> louie > > Server: 172.25.1.1 > Address: 172.25.1.1#53 > > Name: louie.mydns.com > Address: 172.25.1.2 > > > > > Here's my config, but when I type in louie it does not resolve > > ns 3600 IN A 172.25.2.1 > louie 3600 IN A 172.25.2.2 > > Pls help! This have nothing to do with bind. if you want to resolve only by name put the following line in '/etc/resolv.con': search <DOMAIN> when you make a dns query, you have to query for a fully-qualified-domain-name (that is: host.domain). when you query only for hostname, the client adds the domain from the 'search' entry in resolv.conf. Bye -- Haim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]