r/samba-dc: sysvolsync: Use system DNS server

Forcing the PDC lookup to use localhost as the DNS server does not work
when first adding a new domain controller, as the `sysvolsync` script
runs before Samba starts.  There isn't much advantage to using the local
DNS server over the system-defined server anyway.
chrony
Dustin 2023-10-27 17:55:44 -05:00
parent b45e647382
commit 5bffdc68a2
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ info() {
}
get_pdc() {
dig @localhost +short -t srv _ldap._tcp.pdc._msdcs.$(dnsdomainname) \
dig +short -t srv _ldap._tcp.pdc._msdcs.$(dnsdomainname) \
| sort -n \
| awk '{print $4;exit}'
}