Bug 12909 - Hostname not resolved and IP address used instead
Summary: Hostname not resolved and IP address used instead
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.6.6
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2017-07-14 13:52 UTC by Paul Menzel
Modified: 2017-07-14 13:52 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Paul Menzel 2017-07-14 13:52:29 UTC
Despite using the configuration below, the log files do not contain the host name.


   log file        = /var/samba4/cu/log/smbd-%M-%I.log

From the manual.

           the Internet name of the client machine.

(The last part of the IP address is obfuscated by me.)

$ ls /var/samba4/cu/log/smbd-141.14.x.x-141.14.x.x.log

Also `smbstatus` doesn’t show the hostname.

$ sudo smbstatus

Samba version 4.6.5
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
29570   joey       joey       141.14.x.x (ipv4:141.14.x.x:60454)  SMB2_10           -                    -