View Single Post
  #3   (View Single Post)  
Old 25th November 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
Join Date: May 2008
Posts: 696

When you use DHCP, more than just the IP address is assigned. The default route is also assigned, as well as at least the primary DNS server.

If you do it manually, you have to be sure to do those things as well. Set the default route using # route add default and add nameserver to /etc/resolv.conf.

You'll also want to make sure you have an entry in /etc/hosts that gives your IP a hostname; the same one that sendmail will be using. Unless there's already forward and reverse mappings done on the network's DNS servers, for the IP/hostname you are using.

(Where is the local IP of your router, and is the IP of your network's primary DNS server.)

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote