[Samba] Samba DNS fails when queried with nslookup commands
L.P.H. van Belle
belle at bazuin.nl
Thu Aug 13 07:19:17 UTC 2020
Hai,
Only the forwarder is running in this systemd setup.
This : 127.0.0.53:53 does NOT conflict with normaly resolv.conf setting
Because samba or any dns server does not run on 127.0.0.53
Dont make the mistake to see this for : 127.0.0.1
Please show :
/etc/hosts
/etc/resolv.conf
Depending on which one your using:
/etc/network/interfaces and/or
/etc/netplan/01-netcfg.yaml
/etc/systemd/network/.. Output of all files in this folder.
/etc/systemd/resolved.conf
On one (or more) of these files is a misconfiguration.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Rowland penny via samba
> Verzonden: donderdag 13 augustus 2020 8:19
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Samba DNS fails when queried with
> nslookup commands
>
> On 12/08/2020 21:49, James Atwell via samba wrote:
> > Hello,
> >
> > Having issues with a DC not responding to DNS requests. OS is
> > Ubuntu 18.04.4 LTS. Samba version 4.12.2 compiled from source.
> > Checking to see what is listening on port 53 reports;
> >
> > @soldc4:~# netstat -tulpn | grep ":53"
> > tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
> > 2935/systemd-resolv
> > tcp6 0 0 :::53 :::* LISTEN
> 2694/samba:
> > task[dn
> > udp 0 0 127.0.0.53:53 0.0.0.0:*
>
> > 2935/systemd-resolv
> > udp6 0 0 :::53 :::* 2694/samba: task[dn
> >
> >
> > How do I disable systemd-resolve and ensure only samba is
> listening on
> > port 53 for DNS requests? You can see below nslookup succeeds when
> > querying another server in the network but fails on this one.
> >
> > root at soldc4:~# nslookup google.com soldc1
> > Server: soldc1
> > Address: 172.16.23.28#53
> >
> > Non-authoritative answer:
> > Name: google.com
> > Address: 172.217.7.238
> > Name: google.com
> > Address: 2607:f8b0:4004:806::200e
> >
> > root at soldc4:~# nslookup google.com soldc4
> > ;; connection timed out; no servers could be reached
> >
> Last time I set up a DC on 18.04 I did this:
>
> sudo systemctl stop systemd-resolved
> sudo systemctl disable systemd-resolved.service
>
> Rowland
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
>
More information about the samba
mailing list