View Single Post
  #2   (View Single Post)  
Old 31st January 2009
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

/etc/hosts should be set by default from sysinstall when you have installed FreeBSD, unless you haven't configured your NIC during install.

You haven't set the hostname of the system in /etc/hosts

Usually use this form of setting the hostname of the system in /etc/hosts
Code:
<ip_address>      <hostname.domain> <hostname>
<ip_address>      <hostname>.
If you used for hostname 'lan' and domain for example 'mydomain' use should add these lines to /etc/hosts (10.35.1.90 in this case should be your ip address)

Code:
10.35.1.90        lan.mydomain lan
10.35.1.90        lan.mydomain.
See also hosts(5)
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote