<br><br><div class="gmail_quote">On Mon, Feb 20, 2012 at 9:46 AM, Martin Kosek <span dir="ltr"><<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Sun, 2012-02-19 at 17:23 +0100, Marco Pizzoli wrote:<br>
</div><div><div class="h5">> Hi,<br>
> During my setup today I'm always failing in enrolling clients with<br>
> automatic dns updates.<br>
> I'm playing with FreeIPA 2.1.90, but I guess this is a general<br>
> problem, not strictly due to the alpha version.<br>
><br>
> I'm doing a "ipa-client-install --enable-dns-updates" and at the<br>
> console I see:<br>
> Failed to update DNS A record. (Command '/usr/bin/nsupdate<br>
> -g /etc/ipa/.dns_update.txt' returned non-zero exit status 2)<br>
><br>
> I see in server logs that named refuses it:<br>
> Feb 19 17:05:25 freeipa01 named[2089]: client 192.168.20.112#38558:<br>
> update '<a href="http://internet.unix.mydomain.it/IN" target="_blank">internet.unix.mydomain.it/IN</a>' denied<br>
> Feb 19 17:05:25 freeipa01 named[2089]: client 192.168.20.112#40809:<br>
> update '<a href="http://internet.unix.mydomain.it/IN" target="_blank">internet.unix.mydomain.it/IN</a>' denied<br>
><br>
> What is the cause? What other informations do you need about my<br>
> deployment?<br>
><br>
> Thanks in advance as usual<br>
> Marco<br>
<br>
</div></div>Hello Marco,<br>
<br>
please check the settings of the zone you are trying to add clients to.<br>
GSS-TSIG updates are not enabled by default for new zones, it may be<br>
your case.<br>
<br>
This is an entry for my zone '<a href="http://example.com" target="_blank">example.com</a>' where dynamic updates are<br>
enabled:<br>
<br>
# ipa dnszone-show <a href="http://example.com" target="_blank">example.com</a> --all<br>
  dn: idnsname=<a href="http://example.com" target="_blank">example.com</a>,cn=dns,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com<br>
  Zone name: <a href="http://example.com" target="_blank">example.com</a><br>
  Authoritative nameserver: <a href="http://ns.example.com" target="_blank">ns.example.com</a>.<br>
  Administrator e-mail address: <a href="http://hostmaster.example.com" target="_blank">hostmaster.example.com</a>.<br>
  SOA serial: <a href="tel:2012200201" value="+12012200201">2012200201</a><br>
  SOA refresh: 3600<br>
  SOA retry: 900<br>
  SOA expire: 1209600<br>
  SOA minimum: 3600<br>
> BIND update policy: grant <a href="http://IDM.LAB.BOS.REDHAT.COM" target="_blank">IDM.LAB.BOS.REDHAT.COM</a> krb5-self * A; grant <a href="http://IDM.LAB.BOS.REDHAT.COM" target="_blank">IDM.LAB.BOS.REDHAT.COM</a><br>


>                     krb5-self * AAAA; grant <a href="http://IDM.LAB.BOS.REDHAT.COM" target="_blank">IDM.LAB.BOS.REDHAT.COM</a> krb5-self * SSHFP;<br>
  Active zone: TRUE<br>
> Dynamic update: TRUE<br>
  nsrecord: <a href="http://ns.example.com" target="_blank">ns.example.com</a>.<br>
  objectclass: top, idnsrecord, idnszone<br>
<br>
I have marked the important attributes with ">". I would also make sure<br>
that the zone is properly loaded in bind-dyndb-ldap plugin (you can for<br>
example try to retrieve its SOA record with dig).<br></blockquote><div><br>Hi Martin,<br>yes this is the case:<br><br><span style="font-family:courier new,monospace">[root@freeipa01 ~]# ipa dnszone-show <a href="http://internet.unix.mydomain.it">internet.unix.mydomain.it</a> --all</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  dn: idnsname=<a href="http://internet.unix.mydomain.it">internet.unix.mydomain.it</a>,cn=dns,dc=unix,dc=mydomain,dc=it</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  Zone name: <a href="http://internet.unix.mydomain.it">internet.unix.mydomain.it</a></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  Authoritative nameserver: <a href="http://freeipa01.unix.mydomain.it">freeipa01.unix.mydomain.it</a>.</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  Administrator e-mail address: <a href="http://hostmaster.internet.unix.mydomain.it">hostmaster.internet.unix.mydomain.it</a>.</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  SOA serial: 2012180201</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  SOA refresh: 3600</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  SOA retry: 900</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  SOA expire: 1209600</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  SOA minimum: 3600</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  Active zone: TRUE</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  Dynamic update: FALSE</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  nsrecord: <a href="http://freeipa01.unix.mydomain.it">freeipa01.unix.mydomain.it</a>.</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  objectclass: top, idnsrecord, idnszone</span><br><br>So, could you tell me how should I do to have my (new) zone being eventually updated?<br>A link to a doc page would suffices.<br>

<br>Thanks a lot<br>Marco<br><br>
</div></div><br>