[Samba] howto test ddns

steve steve at steve-ss.com
Fri Aug 1 17:15:40 MDT 2014


On Fri, 2014-08-01 at 22:45 +0100, Rowland Penny wrote:
> On 01/08/14 22:10, steve wrote:
> > On Fri, 2014-08-01 at 19:11 +0100, shadrock uhuru wrote:
> >> Hi Steve
> >>
> >> nsupdate -g -D
> >> setup_system()
> >> reset_system()
> >> user_interaction()
> >>> server 10.2.1.6
> >> do_next_command()
> >>> realm TISSISAT.CO.UK
> >> do_next_command()
> >>> update delete ashanti. in A
> >> do_next_command()
> >> evaluate_update()
> >> update_addordelete()
> >>> update delete ashanti. in AAAA
> >> do_next_command()
> >> evaluate_update()
> >> update_addordelete()
> >>> update add testserver. 3600 in A 10.2.1.50
> >> do_next_command()
> >> evaluate_update()
> >> update_addordelete()
> >>> send
> >> do_next_command()
> >> start_update()
> >> recvsoa()
> >> About to create rcvmsg
> >> show_message()
> >> Reply from SOA query:
> >> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id:  52577
> >> ;; flags: qr; QUESTION: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
> >> ;; QUESTION SECTION:
> >> ;testserver.            IN    SOA
> >>
> >> Out of recvsoa
> >> recvsoa()
> >> About to create rcvmsg
> >> show_message()
> >> Reply from SOA query:
> >> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:  45464
> >> ;; flags: qr aa ra; QUESTION: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
> >> ;; QUESTION SECTION:
> >> ;.                IN    SOA
> >>
> >> could not find enclosing zone
> >>
> >>
> >> this is my hosts file, ashanti is the AD
> >>
> >> #
> >> # /etc/hosts: static lookup table for host names
> >> #
> >>
> >> #<ip-address>   <hostname.domain.org>   <hostname>
> >> # 127.0.0.1     localhost.localdomain   localhost ashanti
> >> # 10.2.1.6      ashanti.tissisat.co.uk  ashanti
> >> 127.0.0.1       localhost.localdomain   localhost
> >> 127.0.1.1       ashanti.tissisat.co.uk  ashanti
> >> ::1             localhost.localdomain   localhost
> > Hi
> > comment the 127.0.1.1 entry then look at your hostname as follows:
> > What do the following give us?
> > hostname
> > hostname -f
> > hostname -s
> > hostname -d
> >
> > What does klist -k give and please post sssd.conf
> >
> > Before you send the update, add the domain to the record. Don't worry
> > about the AAAA. For now, let's get the A working.
> > HTH
> > Steve
> >
> Hi Steve, getting the A record working should be easy, I think that the 
> OP is trying to get sssd to update the ipaddress of the AD DC !
> 
> He initially posted (in the log extract):
> 
>   [resolv_gethostbyname_dns_query] (0x0100): Trying to resolve A record 
> of 'ashanti' in DNS
> 
> He then posted:
> 
> nsupdate -g -D
> setup_system()
> reset_system()
> user_interaction()
> server 10.2.1.6
> 
> 
> And a bit lower down:
> 
> this is my hosts file, ashanti is the AD
> 
> # 10.2.1.6      ashanti.tissisat.co.uk  ashanti
> 
> So, unless I am greatly mistaken, the OP is trying to update the record 
> for the AD DC, something he shouldn't be doing, he needs to get dns info 
> on the server set to a fixed ip with correct records in /etc/hosts and 
> then try again from a CLIENT!
> 
> Rowland
> 

OMG, really?
We're with you down to here:

>>> update delete ashanti. in A
ashanti is we think, the DC
but then there is the more reasonable:
> >>> update add testserver. 3600 in A 10.2.1.50

Under the latter circumstance, we could believe:
update delete testserver.tissisat.co.uk in A
followed by the quoted update.

Anyway, just hoping that this is in the lab;)
Cheers,
Steve





More information about the samba mailing list