[Samba] name resolves to public address - should resolve to private...

Chris Smith smb23 at realcomputerguy.com
Thu May 8 16:00:56 GMT 2008


On Wednesday 07 May 2008, Joe Demeny wrote:
> The Windows clients are configured to look up the Samba PDC machine
> for both DNS and WINS. The Windows clients seem to be able to find
> other machines as well as the PDC:
>
> Z:\>ping pilot-ws
>
> Pinging pilot-ws [10.10.10.34] with 32 bytes of data:
>
> Reply from 10.10.10.34: bytes=32 time<1ms TTL=128
...
> Z:\>ping mail
>
> Pinging mail [10.10.10.253] with 32 bytes of data:
>
> Reply from 10.10.10.253: bytes=32 time<1ms TTL=64
...
> Z:\>ping mail.mycustomer.com
>
> Pinging mail.mycustomer.com [aaa.bbb.ccc.ddd] with 32 bytes of data:
>
> Reply from aaa.bbb.ccc.ddd: bytes=32 time<1ms TTL=64

This is because "mail" is most likely the systems netbios name and 
therefore the registered netbios name in the WINS database, a dotted 
domain name name is unusual as a netbios name but "mail.mycustomer.com" 
wouldn't be a proper one as it is too long. So "mail.mycustomer.com" 
will always be a domain (hosts/DNS) type lookup - the systems are not 
asking Samba for such resolution.

> What I want is that the Windows machines resolve both mail and
> mail.mycustomer.com to 10.10.10.253.
>
> On the Samba PDC machine in /etc/hosts I have:
>
> 10.10.10.253    mail.mycustomer.com  mail

As Dennis mentioned you can use the "hosts" file in Windows as well - it 
will, in most cases be searched first for such name resolution (as it 
is in 'nix).

> In smb.conf I have:
>
>     wins support = Yes
>     dns proxy = No
>     name resolve order = wins host lmhosts broadcast
That's only a directive for the running Samba's own lookups - it doesn't 
propagate to to clients.

Best solution, if your DNS handles outside requests as well, is to use 
split horizon DNS (BIND views, as Dennis mentioned, if using that 
product).

-- 
Chris


More information about the samba mailing list