a05e Hostnames not resolving, only by SMB/CIFS and one PC - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old February 19th, 2013, 20:48
avattz avattz is offline
Junior Member
 
Join Date: Feb 2013
Posts: 1
Thanks: 2
Thanked 0 Times in 0 Posts
Default Hostnames not resolving, only by SMB/CIFS and one PC

Hi there,

I'm currently using FreeBSD 9.1-RELEASE as a home ZFS file server, but I also wanted to go router-less. I recently set it up to share internet through all Ethernet ports and use a USB wireless adapter as an access point. The problem I'm having is that I cannot ping or SSH my FreeBSD machine from any of the computers connected to it (by Ethernet or wireless) except for one Windows 7 machine. The thing that I find strange is that all computers can mount network share from FreeBSD using hostnames (i.e. SMB://hostname/share).

I can ping all computers using their static IPs but hostnames don't (except for the Windows machine). I know I'm missing something (do I have to setup a DNS server or DHCP?) because when I was using a DD-WRT router, hostnames, DHCP, and IP addresses were working fine with all computers.
Reply With Quote
  #2  
Old February 20th, 2013, 08:48
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

You are missing DNS. From windows it will work because it will resort to resolving hostnames using NetBIOS broadcasts.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
avattz (February 21st, 2013)
  #3  
Old February 20th, 2013, 11:58
gqgunhed gqgunhed is offline
Junior Member
 
Join Date: Jun 2012
Location: South Germany
Posts: 73
Thanks: 25
Thanked 11 Times in 11 Posts
Default

For your scenario maybe have a look at dns/dnsmasq.
That serves as a DHCP- and DNS-server.

The DNS-part is pretty simple as it uses the hosts /etc/hosts and /etc/resolv.conf files.
But the config file is pretty self-explaining.
Reply With Quote
The Following User Says Thank You to gqgunhed For This Useful Post:
avattz (February 21st, 2013)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ggate, cifs or nfs? fluca1978 Web & Network Services 1 October 22nd, 2012 22:48
denyhosts is not blocking hostnames ghostcorps Firewalls 5 October 5th, 2011 23:36
[Solved] last(1) not showing hostnames, only IP addresses (8.0-RC1) draenan Networking 8 May 5th, 2011 00:41
Why does my jail not resolve hostnames? osx-addict Firewalls 17 March 4th, 2009 22:13
SNMP multiple hostnames Mike_MT Networking 0 February 19th, 2009 22:27


All times are GMT +1. The time now is 09:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0