[Samba] LDAP Server's dns A records...

Norbert Hanke norbert.hanke at gmx.ch
Thu Aug 6 11:31:58 UTC 2020


Using the FQDN of the domain should do exactly that: return all IPs of
the domain in a round-robin fashion.

$ nslookup ad.mydomain.ch
Server:         192.168.77.8
Address:        192.168.77.8#53

Name:   ad.mydomain.ch
Address: 192.168.77.9
Name:   ad.mydomain.ch
Address: 192.168.77.8

$ dig ad.mydomain.ch

; <<>> DiG 9.11.5-P4-5.1-Raspbian <<>> ad.mydomain.ch
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50642
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 7f13fd4b30b47de7ef0fca875f2be936b97903879ee7a090 (good)
;; QUESTION SECTION:
;ad.mydomain.ch.               IN      A

;; ANSWER SECTION:
ad.mydomain.ch.        900     IN      A       192.168.77.9
ad.mydomain.ch.        900     IN      A       192.168.77.8

;; AUTHORITY SECTION:
ad.mydomain.ch.        900     IN      NS dc2.ad.mydomain.ch.
ad.mydomain.ch.        900     IN      NS dc1.ad.mydomain.ch.

;; ADDITIONAL SECTION:
dc1.ad.mydomain.ch.    900     IN      A       192.168.77.8
dc2.ad.mydomain.ch.    900     IN      A       192.168.77.9

;; Query time: 12 msec
;; SERVER: 192.168.77.8#53(192.168.77.8)
;; WHEN: Thu Aug 06 13:27:50 CEST 2020
;; MSG SIZE  rcvd: 172


On 29.07.2020 16:40, Marco Gaiarin via samba wrote:
> [It is more an AD question then a Samba question, but...]
>
>
> I need to do some LDAP query in an AD domain, plain LDAP query, mostly
> to query non-auth data (eg, emails).
>
> There's a DNS name that map to 'round robin the AD DC of the current
> site'? I need an 'A' record, not an SRV record, eg i need to put in my
> apps/MFP/... an LDAP server DNS name that round robin between the
> site's DC, or all the DC's.
>
>
> I hope i was clear. Thanks.
>



More information about the samba mailing list