enabling internal DNS

Kai Blin kai at samba.org
Mon Sep 17 06:31:59 MDT 2012

On 2012-09-17 13:52, Daniele Dario wrote:

Hi Daniele,

> [root at kdc02:~]# nslookup www.google.it
> Server:
> Address:

This is nslookup telling you that out of the nameservers in resolv.conf,
it decided to ask this time.

> Non-authoritative answer:
> Name:	www.google.it
> Address:
> Name:	www.google.it
> Address:
> Name:	www.google.it
> Address:
> which tells me kdc02 "forwards" the request to kdc01.

No, your nslookup client asks kdc01.

> When I perform the request on kdc02, in the log.samba appears
> ../source4/dns_server/dns_query.c:604(dns_server_process_query_send)
>   Not authoritative for 'www.google.it', forwarding
> but it does not forward to the forwarder but to the other DC.

And you are basing this on what kind of observation? I'm pretty
confident that the forwarder code uses the IP address you set in
smb.conf when it decideds to forward. Pretty confident as in "that's the
way I wrote the code" :).

> What am I doing wrong?

I'm not sure you're doing anything wrong, DNS is slightly more complex
that one initially thinks. :)


Kai Blin
Worldforge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/

More information about the samba-technical mailing list