DNS and Gateway in FreeBSD?

John Brooks john at day-light.com
Wed Jun 8 11:58:00 GMT 2005


what is the contents of /etc/resolv.conf

--
John Brooks
john at day-light.com

> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Xu Qiang
> Sent: Wednesday, June 08, 2005 2:16 AM
> To: Jonathan Chen; Xu Qiang
> Cc: freebsd-questions at FreeBSD.org
> Subject: RE: DNS and Gateway in FreeBSD?
>
>
> 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=9<RXCSUM,VLAN_MTU>
>         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=108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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="13.198.32.1"
> hostname="gso_dev_2.workgroup"
> ifconfig_xl0="inet 13.198.33.131  netmask 255.255.252.0"
> linux_enable="YES"
> moused_enable="YES"
> usbd_enable="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" successfully. Quite strange. :(

Regards,
Xu Qiang


_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list