resolv.conf missing

Bill Moran wmoran at
Fri Oct 8 15:35:58 PDT 2004

Lance Earl <lance at> wrote:
> I am planning to convert my redhat server ( to 5.x
> freebsd when 5.x is released as stable. Until then, I am working with
> 5.1.2 to get familiar with it.
> I have installed it on a dhcp network with the following:
> dhcp server:
> fedora computer:
> bsd computer:
> >From the v 5.x computer I can ping and
> When I try to ping, the ping fails. I can however ping
> successfully. I cannot ping anything on the Internet.

Does 'netstat -rn' show a default route?  If not, then you need to set
one in /etc/rc.conf (or using sysinstall).

I'm a little confused, though.  Are you using DHCP?  If so, the DHCP
server _should_ set all this for you.  (Although a DHCP server doesn't
_have_ to set all this, it sure defeats the purpose if it doesn't)
If you're not using DHCP to set the network information on the BSD
machine, you'll need to manually add a "defaultrouter=" statement
in /etc/rc.conf, and manually create /etc/resolv.conf (or you can
use sysinstall to create them)

Bill Moran
Potential Technologies

More information about the freebsd-questions mailing list