Why does system fails to access samba shares using hostname instead of ip address, if in samba share "hosts allow =" is defined with "hostname" in Red Hat Enterprise Linux 6?
Issue
- Samba shares are not accessible when
hosts allow =is defined withhostnameon Red Hat Enterprise Linux 6 - Same share is accessble if client system tries to access the share using
IP Address
Sample Configuration -
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/samba.log
log level = 3
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[Test]
comment = testfolder
path = /testfolder
create mask = 0777
guest ok = yes
hosts allow = test.example.com, 192.168.1.12
Environment
- Red Hat Enterprise Linux 6
- samba-3.6.9-XX (or higher)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
