Find the answer to your Linux question:
Results 1 to 4 of 4
Hi. I`m using debian server and samba file server for a quiet time. It works like file server for windows clients only. But here is my problem, when I type ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2

    smbstatus not resolv machines

    Hi. I`m using debian server and samba file server for a quiet time. It works like file server for windows clients only. But here is my problem, when I type "smbstatus", it shows at machine colon - not machine host, but it`s IP address. So why that problem, some windows clients shows their names, but some only IP, I wanna to all clients shows their hostnames, that easy to understand what client uses files.

    Little example how:
    Code:
    Service   pid           machine         Connected at
    ----------------------------------------------------------
    data      45745     192.168.1.25       date when connected  # not resolved
    data      43564     janis-tehn         date whenn connected
    Regards to this forum, Janis!

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Name Resolution

    Do you have nslookup installed? (Or dig)

    Is a reverse lookup successful?
    Code:
    nslookup <IP_ADDR>

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2
    Quote Originally Posted by HROAdmin26 View Post
    Do you have nslookup installed? (Or dig)

    Is a reverse lookup successful?
    Code:
    nslookup <IP_ADDR>
    I can check it tomorow, but why some shows and some not, if not installed nslookup then proabably system will not resolve any host, but it resolve some. Maybe some clients have some bad configuration or anyhing, but I don`t understand.

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Please read the Wikipedia article on name resolution. Nslookup is a tool for YOU to use to query DNS, it does not define if your OS can perform name resolution. There are several ways to get name resolution, and DNS is only one of them.

    Short version: Some machines may have a successful reverse lookup and others may not. Fix your name resolution, and all of the "clients" will show by name in smbstatus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •