Things seem really slow on clean install of FreeBSD

GUYS! Really weird, I added
Code:
FreeBSD-01v
to my /etc/hosts files loopback address and now things are starting right up and it's working really fast now. I didn't expect that to fix it but FreeBSD seems to be working fine now. So now my hosts file looks like the following:

Code:
127.0.0.1		localhost FreeBSD-01v localhost.my.domain
 
BTW, "FreeBSD-01v" is my machine's hostname. Just saying as to help someone else who may come across this problem.
 
I should have been more specific in post #8. It's not just localhost, but some things want the old FQDN, or at least the real IP address should resolve to the hostname.
 
wblock@ said:
Possibly DNS also, maybe with the editor trying to look up localhost or some network resource.

I had also the same problem with emacs when running disconnected from the network, and fixed placing the machine name in /etc/hosts.
 
You can also use an alias IP on the network interface that is otherwise configured with DHCP:

Code:
hostname="myhost.mydomain"
ifconfig_em0="SYNCDHCP"
ifconfig_em0_alias0="inet 192.168.1.100/24"

And put this in /etc/hosts (and leave the localhost line as it is)

Code:
192.168.1.100   myhost.mydomain    myhost

If your machine is a router with 2 or more interfaces then you can just use the LAN IP address as myhost.mydomain.
 
Back
Top