Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: cifs mount fails if using domain name instead of IP

  1. #11
    Join Date
    Sep 2011
    Beans
    5

    Re: cifs mount fails if using domain name instead of IP

    Quote Originally Posted by Sidrabs View Post
    Attached is the console output, it's too big to be politely inserted in the message body.
    Keep in mind that I'm no Samba expert, but the system call trace you posted makes it look like it's not even trying to resolve the name. Note these lines:

    Code:
    open("/etc/nsswitch.conf", O_RDONLY)    = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=513, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffc87ff4000
    read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 513
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0x7ffc87ff4000, 4096)            = 0
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    It opens nsswitch.conf, closes it, but never bothers to go to DNS. Either Samba isn't supposed to support what you want to do, or something's going on with name resolution. What does your nsswitch.conf look like?

    EDIT: I found this also, which may help:

    7.3.4.4 dns proxy

    If you want the domain name service (DNS) to be used if a name isn't found in WINS, you can set the following option:

    [global]
    dns proxy = yes

    This will cause nmbd to query for machine names using the server's standard domain name service. You may wish to deactivate this option if you do not have a permanent connection to your DNS server. Despite this option, we recommend using a WINS server. If you don't already have any WINS servers on your network, make one Samba machine a WINS server. Do not, however, make two Samba machines WINS servers (one primary and one backup) as they currently cannot exchange WINS databases.
    Is dns proxy set up in your smb.conf? Source: http://oreilly.com/openbook/samba/book/ch07_03.html
    Last edited by KeithKris; December 19th, 2011 at 03:58 PM.

  2. #12
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: cifs mount fails if using domain name instead of IP

    Quote Originally Posted by KeithKris View Post
    Keep in mind that I'm no Samba expert, but the system call trace you posted makes it look like it's not even trying to resolve the name. Note these lines:

    Code:
    open("/etc/nsswitch.conf", O_RDONLY)    = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=513, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffc87ff4000
    read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 513
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0x7ffc87ff4000, 4096)            = 0
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    It opens nsswitch.conf, closes it, but never bothers to go to DNS. Either Samba isn't supposed to support what you want to do, or something's going on with name resolution. What does your nsswitch.conf look like?
    Samba has its own lookup order. In the global section of the smb.conf file, see
    Code:
    name resolve order = lmhosts host wins bcast

    Is dns proxy set up in your smb.conf? Source: http://oreilly.com/openbook/samba/book/ch07_03.html
    This is a book about Samba 2.0. I believe this was before Win2k when windows NT and Win95/98 was current.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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