DNS forwarding and failure to bind for port 137

Günter Kukkukk linux at kukkukk.com
Wed Dec 5 20:29:35 MST 2012


Am Dienstag, 4. Dezember 2012, 23:27:21 schrieb Dewayne Geraghty:
> Hi Kai,
> 
> Thank-you for taking an interest, the requested detail:
> 
> # /usr/local/samba/sbin/samba -i -M single -d 2
> lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
> samba version 4.0.0rc5 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2012
> samba: using 'single' process model
> Failed to bind to 10.0.5.241:137 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
> task_server_terminate: [nbtd failed to setup interfaces]
> dreplsrv_partition[CN=Configuration,DC=hs,DC=local] loaded
> dreplsrv_partition[CN=Schema,CN=Configuration,DC=hs,DC=local] loaded
> dreplsrv_partition[DC=hs,DC=local] loaded
> dreplsrv_partition[DC=ForestDnsZones,DC=hs,DC=local] loaded
> dreplsrv_partition[DC=DomainDnsZones,DC=hs,DC=local] loaded
> kccsrv_partition[DC=hs,DC=local] loaded
> kccsrv_partition[CN=Configuration,DC=hs,DC=local] loaded
> kccsrv_partition[CN=Schema,CN=Configuration,DC=hs,DC=local] loaded
> kccsrv_partition[DC=DomainDnsZones,DC=hs,DC=local] loaded
> kccsrv_partition[DC=ForestDnsZones,DC=hs,DC=local] loaded
> /usr/local/samba/sbin/smbd: smbd version 4.0.0rc5 started.
> /usr/local/samba/sbin/smbd: Copyright Andrew Tridgell and the Samba Team
> 1992-2012 /usr/local/samba/sbin/smbd: standard input is not a socket,
> assuming -D option Not authoritative for 'www.dell.com.au', forwarding
> Not authoritative for 'www.dell.com.au.hs', forwarding
> 
> A debug level 4 provided additional information:
> Child /usr/local/samba/sbin/samba_dnsupdate exited with status 0 - No
> error: 0 Completed DNS update check OK
> dreplsrv_notify_schedule(5) scheduled for: Tue Dec  4 22:03:38 2012 UTC
> Not authoritative for 'www.dell.com.au', forwarding
> Not authoritative for 'www.dell.com.au.hs', forwarding
 
forwarding to 'www.dell.com.au.hs' is not right here - notice the trailing ".hs".
This might be due to some wrong info in your /etc/resolv.conf (see below).

> 
> A tcpdump of the interface reveals no port 53 traffic. The active interface
> has blue: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,
> LINKSTATE> ether 00:1f:d0:11:d4:12
>         inet 10.0.5.241 netmask 0xffffff00 broadcast 10.0.5.255
> 
> Routing is good, "nslookup www.dell.com.au 10.0.5.91" correctly resolves.
> 
> # cat /usr/local/samba/etc/smb.conf
> # Global parameters
> [global]
>         workgroup = HS
>         realm = hs.local
>         netbios name = T4
>         server role = active directory domain controller
> 
>         dns forwarder = 10.0.5.91
>         interfaces = 10.0.5.241
>         bind interfaces only = yes
> 
> [netlogon]
>         path = /usr/local/samba/var/locks/sysvol/hs.com/scripts
>         read only = No
> 
> [sysvol]
>         path = /usr/local/samba/var/locks/sysvol
>         read only = No
> 
> And  /etc/resolv.conf
> search hs.local hs
         ^^^^^^^^ ^^
why are you using both "hs.local" and "hs" here ?
This "hs" is related to the wrong dns query, which is then
forwarded (see above).

A note about the ".local" ending, which you are using.
".local" is somewhat reserved for mDNS, zeroconf, Apple Bonjour, etc.
(google for those to get some info about there usage cases).

Anyway, i would recommend to change ".local" to e.g. ".lan" 
or something else (usable for intranets).

If those changes don't solve your problem, you might need to use
gdb to come closer - at least the samba internal dns is trying
to forward the requests it's not authoritative for.

Cheers, Günter

> nameserver 10.0.5.241
> 
> An extract from /usr/local/samba/bin/samba-tool dns serverinfo 10.0.5.241
> ...
>   aipServerAddrs              : ['10.0.5.241 (53)']
>   aipListenAddrs              : ['10.0.5.241 (53)']
>   aipForwarders               : []
>   dwLogLevel                  : 0
>   dwDebugLevel                : 0
>   dwForwardTimeout            : 3
> ...
> 
> An extract from /usr/local/samba/bin/samba-tool dns zoneinfo 10.0.5.241
> hs.local ...
>   pszZoneName                 : hs.local
>   dwZoneType                  : DNS_ZONE_TYPE_PRIMARY
>   dwForwarderTimeout          : 0
>   fForwarderSlave             : 0
>   aipLocalMasters             : []
> ...
> 
> Kind regards, Dewayne.



More information about the samba-technical mailing list