Subject: RE: Can't find a host.
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Nguyen, Son N. <sn.nguyen@ngc.com>
List: current-users
Date: 09/10/2007 12:07:51
Thanks Steve.
I want to correct previous email:
I did not set my network card to 192.168.1.16. I got this ip from DHCP
in the router.
My purpose is to map the name "nsl.myhome.net" to that ip.

sn=20

-----Original Message-----
From: Steven M. Bellovin [mailto:smb@cs.columbia.edu]=20
Sent: Monday, September 10, 2007 11:35 AM
To: Nguyen, Son N.
Cc: current-users@NetBSD.org
Subject: Re: Can't find a host.

On Mon, 10 Sep 2007 11:01:30 -0400
"Nguyen, Son N." <sn.nguyen@ngc.com> wrote:

>=20
>  I have a DSL and a router to connect to internet. I set 192.168.1.16=20
> for my network card.
>  In /etc/rc.conf, I added dhclient=3DYES and I can browse the web=20
> without any problem.
>  In /etc/hosts file, I add "192.168.1.16	nsl.myhome.net  nsl".
> But if I type 'host nsl' it could not find the host:
>  "...not found in 3(NXDOMAIN)".
>  I don't know why? Any one know? Thanks a lot.
> =20
>  snguyen
>=20
As I understand it, host(1) only consults the DNS, not /etc/hosts.


		--Steve Bellovin, http://www.cs.columbia.edu/~smb