LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-26-2017, 01:15 PM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Samba and hostname resolution


Hi,

I regularly setup Samba servers for mixed networks, and it's more or less routine. Usually this means that the Samba server also takes care of DHCP and DNS (using Dnsmasq), and before fine-tuning Samba, I make sure that all hosts can be reached by their respective hostnames.

Now I have a special use case, and I wonder if it's possible to setup a Samba server in a network where hosts can not necessarily be reached by their hostnames. The Samba server and the backup server have static IP addresses outside the DHCP range, but other than that, no local DNS is configured.

Any suggestions?
 
Old 01-26-2017, 02:38 PM   #2
wicksey
LQ Newbie
 
Registered: Nov 2016
Location: UK
Distribution: Slackware 14.2
Posts: 15

Rep: Reputation: Disabled
Sure. Pretty sure you'll be able to reach the samba server by its netbios name without local dns. If I recall, the samba server will broadcast it and smb clients will be able to use it. (Or clients can browse the server by using the server ip of course.) Sorry if I'm not understanding the question.
 
Old 01-26-2017, 04:05 PM   #3
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,262
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
You can also access SAMBA shares directly via IP address. Or, as I do on my DHCP/DNS router, assign a host name to the reserved, static IP. My network is a mix of DHCP and static IP assignments and every box has a human readable name.
 
Old 02-01-2017, 08:49 AM   #4
wicksey
LQ Newbie
 
Registered: Nov 2016
Location: UK
Distribution: Slackware 14.2
Posts: 15

Rep: Reputation: Disabled
@kikinovak - I'm interested whether workstations did indeed find the samba server without local dns services?
 
Old 02-01-2017, 09:26 AM   #5
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Code:
[global]
   ......
   os level = 33
   local master = yes
   domain master = yes
   preferred master = yes
   wins support = yes
   dns proxy = no

Cheers
 
2 members found this post helpful.
Old 02-01-2017, 12:20 PM   #6
wicksey
LQ Newbie
 
Registered: Nov 2016
Location: UK
Distribution: Slackware 14.2
Posts: 15

Rep: Reputation: Disabled
Yup. It's worked fine here for years. Just wondering if kikinovak got it all going okay :-)
 
Old 02-01-2017, 12:32 PM   #7
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,176

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by ivandi View Post
Code:
[global]
   ......
   os level = 33
   local master = yes
   domain master = yes
   preferred master = yes
   wins support = yes
   dns proxy = no
If you use dhcp to configure the clients you should also specify the netbios server option in your dhcpd conf. If you don't, you will have to tell each client manually where the wins server is.

Last edited by Gerard Lally; 02-01-2017 at 01:02 PM.
 
1 members found this post helpful.
Old 02-01-2017, 03:01 PM   #8
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by wicksey View Post
@kikinovak - I'm interested whether workstations did indeed find the samba server without local dns services?
First of all, thanks everybody for your suggestions. I found a solution where I could setup a sane DNS in this network, so I won't have to experiment without hostnames.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname resolution diogosalazar Linux - Networking 1 03-16-2011 12:27 PM
Hostname Resolution Raakh Linux - Newbie 1 11-28-2007 02:30 PM
Fedora hostname resolution abbs1 Linux - Networking 2 01-26-2006 02:25 AM
hostname resolution problems. FLOODS Fedora 4 10-27-2005 07:58 PM
Automatic Hostname Resolution douceur Linux - Networking 3 06-21-2005 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration