Bug 11718 - Config: interfaces = DNS name only binds to one IP address
Summary: Config: interfaces = DNS name only binds to one IP address
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-05 15:19 UTC by Rechi
Modified: 2016-12-05 13:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rechi 2016-02-05 15:19:08 UTC
smb.conf
  bind interfaces only = yes
  interfaces = localhost

Assume that, DNS Record localhost has to 2 IP addresses (127.0.0.1, ::1), which both have network interfaces on the computer.
Samba binds only to one of them and not to both.

This applies for  all other DNS Names which have multiple records.
Comment 1 Björn Jacke 2016-12-05 13:51:24 UTC
this parameter is about interfaces or IPs but not about DNS host names. DNS names with multiple A/AAAA records are not supposed to do what you want to do here.

Use the interface name instead of DNS names. For example use "eth0" or whatever instead of the host name. If this is not waht you want, then you have to specify the desired IPs manually.

For the special case of the loopback interface you might run into bug #12422 though.