Hello,
I am running FreeBSD 8.1 Release, and am encountering some problems resolving local hostnames. Here are the symptoms I have observed:
I partially resolved my initial problem, the delayed connection to Samba - by adding into the hosts file my IP address and hostname:
/etc/hosts
However this machine may not always have the same IP address and although this has resolved my most pressing issue there is still an underlying problem.
I believe that the problem lies in a (local) hostname lookup timing out, as once it has connected, network speeds are unaffected - but I'm at a loss of how to troubleshoot it.
Additional Information:
The FreeBSD Machine is a DHCP Client, on a Workgroup based network.
It is running a mostly standard install from the 8.1 Release CD, I have installed Samba but no additional networking services.
rc.conf:
Any help, even in direction of how to troubleshoot this further, would be greatly appreciated.
I am running FreeBSD 8.1 Release, and am encountering some problems resolving local hostnames. Here are the symptoms I have observed:
- Initial connection to Samba is extremely slow. When attempting to navigate to the machine from a Windows client, it took upwards of 45 seconds to connect. Once it connected, navigation/transfer speeds were fine. [Solved by adding IP address/machine name to hosts file]
- Initial connection to SSH client is extremely slow, despite hosts file entry as above. 45seconds+
- I can ping the FreeBSD machine from other machines.
- The FreeBSD machine can't ping machines by hostname - after a delay of 5-7 seconds it returns:
Code:ping: cannot resolve <hostname>: Host name lookup failure
- The FreeBSD machine can ping machines by IP address.
- The FreeBSD machine can resolve and ping external websites (ie: google.com).
I partially resolved my initial problem, the delayed connection to Samba - by adding into the hosts file my IP address and hostname:
/etc/hosts
Code:
::1 localhost localhost
127.0.0.1 neon.local. neon
192.168.1.3 neon neon
I believe that the problem lies in a (local) hostname lookup timing out, as once it has connected, network speeds are unaffected - but I'm at a loss of how to troubleshoot it.
Additional Information:
The FreeBSD Machine is a DHCP Client, on a Workgroup based network.
It is running a mostly standard install from the 8.1 Release CD, I have installed Samba but no additional networking services.
rc.conf:
Code:
hostname="neon"
ifconfig_re0="DHCP"
ipv6_enable="NO"
zfs_enable="YES"
powerd_enable="YES"
sshd_enable="YES"
samba_enable="YES"
Any help, even in direction of how to troubleshoot this further, would be greatly appreciated.