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?

Solution Unverified - Updated -

Issue

  • Samba shares are not accessible when hosts allow = is defined with hostname on 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content