Bug 12909 - Hostname not resolved and IP address used instead
Hostname not resolved and IP address used instead
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
4.6.6
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-14 13:52 UTC by Paul Menzel
Modified: 2017-07-14 13:52 UTC (History)
0 users

See Also:


Attachments

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.

```
[global]

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

From the manual.

```
       %M
           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
/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           -                    -                    
```