From owner-freebsd-questions@FreeBSD.ORG Wed Jun 8 07:12:52 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1F1D16A41C for ; Wed, 8 Jun 2005 07:12:52 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from mx1.fujixerox.co.jp (mx1.fujixerox.co.jp [192.26.96.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id B706743D55 for ; Wed, 8 Jun 2005 07:12:51 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from isvw1.fujixerox.co.jp ([129.249.27.131]) by mx1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j587Cj911509; Wed, 8 Jun 2005 16:12:45 +0900 (JST) Received: from ms1.fujixerox.co.jp (isvw1 [129.249.27.131]) by isvw1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j587Cio23265; Wed, 8 Jun 2005 16:12:44 +0900 (JST) Received: from sgpaphq-smtp02.fujixerox.com ([13.198.8.74]) by ms1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j587ChP27848; Wed, 8 Jun 2005 16:12:43 +0900 (JST) Received: from mailhost.sgp.fujixerox.com by sgpaphq-smtp01.fujixerox.com with ESMTP id 59051941118214747; Wed, 08 Jun 2005 15:12:27 +0800 Received: from localhost (localhost [127.0.0.1]) by localhost.sgp.fujixerox.com (Postfix) with SMTP id 8AFA81D8FE; Wed, 8 Jun 2005 15:05:23 +0800 (SGT) Received: from sess.xssc.sgp.xerox.com (unknown [13.198.33.122]) by imss.sgp.fujixerox.com (Postfix) with ESMTP id 25D5A1D92E; Wed, 8 Jun 2005 15:05:14 +0800 (SGT) From: Xu Qiang To: Jonathan Chen , Xu Qiang Date: Wed, 8 Jun 2005 15:15:30 +0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (9.0.2711) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20050608070514.25D5A1D92E@imss.sgp.fujixerox.com> Cc: freebsd-questions@FreeBSD.org Subject: RE: DNS and Gateway in FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 07:12:52 -0000 Jonathan Chen wrote: > /etc/rc.conf, output of "netstat -rn", "ifconfig -a" would help. The output of "ifconfig -a" is: = ------------------------------------------- gso_dev_2# ifconfig -a xl0: flags=3D8843 mtu 1500 options=3D9 inet 13.198.33.131 netmask 0xfffffc00 broadcast 13.198.35.255 inet6 fe80::2b0:d0ff:fe44:403c%xl0 prefixlen 64 scopeid 0x1 = ether 00:b0:d0:44:40:3c media: Ethernet autoselect (10baseT/UTP) status: active plip0: flags=3D108810 mtu 1500 lo0: flags=3D8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 = inet6 ::1 prefixlen 128 = inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 = ------------------------------------------- The content of /etc/rc.conf: = ------------------------------------------- # -- sysinstall generated deltas -- # Tue Apr 12 23:53:44 2005 # Created: Tue Apr 12 23:53:44 2005 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=3D"13.198.32.1" hostname=3D"gso_dev_2.workgroup" ifconfig_xl0=3D"inet 13.198.33.131 netmask 255.255.252.0" linux_enable=3D"YES" moused_enable=3D"YES" usbd_enable=3D"YES" ------------------------------------------- I didn't remember I have added the gateway "13.198.32.1". I manually added = the ip address (13.198.33.131) and netmask (255.255.252.0), so I wonder how= the gateway was added into this file. And I didn't have any DNS setting here. Yet it can "ping www.yahoo.com" suc= cessfully. Quite strange. :( Regards, Xu Qiang