<div dir="ltr"><div><br><br>
On 22.7.2014 15:33, Shashi M wrote:<br>
>> I am looking for some help on DNS configuration migraion from AD to FreeIPA.<br>
>><br>
>> I am planning implement AD trust in my current freeIPA setup which is<br>
>> currently having AD-IPA one way sync.<br></div><div>
>><br></div><div>
>> New setup, I would also like to mange the DNS throug IPA. Currently unix<br>
>> DNS is hosted on Windows AD servers. I will have to import all the existing<br>
>> DNS records in freeIPA.<br>
>><br>
>> Is it possible to configure freeIPA DNS service as secondary (slave) to<br>
>> existing AD DNS servers?<br>
>><br>
>> my planned approach to migrate dns is as below<br>
>><br>
>> - Setup new IPA servers with DNS for <a href="http://unix.example.com" target="_blank">unix.example.com</a> domain....<br>
>> - Allow zone transfer from AD to freeIPA to populate freeIPA DNS servers<br>
>> - Promote freeIPA as primary DNS server and make AD as secondary DNS<br>
<br>>
FreeIPA cannot be slave of another DNS server (yet :-). You have the option to<br>
> use normal zone transfer, convert data from zone file to LDIF and import the<br>
> LDIF directly to LDAP.<br>
<br>
> See <a href="https://fedorahosted.org/bind-dyndb-ldap/wiki/Migration" target="_blank">https://fedorahosted.org/bind-dyndb-ldap/wiki/Migration</a> and let us know if<br>
> you need any assistance.<br>
<br>
> After that you will see all the data in FreeIPA user interface and all FreeIPA<br>
> servers will serve the same copy of the data.<br>
<br>
>> Is this achivable with freeIPA currently? If not is it possible to have<br>
>> bind 9 installed on freeIPA server and still DNS be managed by freeIPA?<br>
<br>>
FreeIPA uses BIND 9 for it's DNS but all data managed by FreeIPA have to be in<br>
> LDAP, not in master files. Anyway, the conversion procedure linked above is<br>
> pretty straightforward.<br>
<br>
> Have a nice day!<br>
<br>
> --<br>
> Petr^2 Spacek<br>
<br>Thanks you Petr for promt response!  I will try this in test domain and share the oupt in this thread.<br><br></div><div>Regards,<br>Shashikant<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 22, 2014 at 4:54 PM,  <span dir="ltr"><<a href="mailto:freeipa-users-request@redhat.com" target="_blank">freeipa-users-request@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Freeipa-users mailing list submissions to<br>
        <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:freeipa-users-request@redhat.com">freeipa-users-request@redhat.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeipa-users-owner@redhat.com">freeipa-users-owner@redhat.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Freeipa-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Correct syntax for round-robin DNS srv records (Mark Heslin)<br>
   2. Re: Correct syntax for round-robin DNS srv records (Mark Heslin)<br>
   3. DNS migration from AD to freeIPA managed DNS (Shashi M)<br>
   4. Re: DNS migration from AD to freeIPA managed DNS (Petr Spacek)<br>
   5. Mass update IP addresses (KodaK)<br>
   6. Re: Correct syntax for round-robin DNS srv records (Petr Spacek)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 22 Jul 2014 08:00:50 -0400<br>
From: Mark Heslin <<a href="mailto:mheslin@redhat.com">mheslin@redhat.com</a>><br>
To: Petr Spacek <<a href="mailto:pspacek@redhat.com">pspacek@redhat.com</a>>, Martin Basti <<a href="mailto:mbasti@redhat.com">mbasti@redhat.com</a>><br>
Cc: <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
Subject: Re: [Freeipa-users] Correct syntax for round-robin DNS srv<br>
        records<br>
Message-ID: <<a href="mailto:53CE5272.5040807@redhat.com">53CE5272.5040807@redhat.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Martin, Petr,<br>
<br>
I didn't see that missing dot "." - good catch. As always the devil is<br>
in the details :-)<br>
<br>
Two follow up questions:<br>
<br>
  1. I've set the priority and weighting equally here but I will add a<br>
third host<br>
       so would it make sense to just set both priority and weight to<br>
"0" for all three hosts?:<br>
<br>
        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
<a href="http://foo1.example.com" target="_blank">foo1.example.com</a>."<br>
        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
<a href="http://foo2.example.com" target="_blank">foo2.example.com</a>."<br>
        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
<a href="http://foo3.example.com" target="_blank">foo3.example.com</a>."<br>
<br>
  2. To Petr's point about registering the "_foo.tcp" service. By<br>
definition this isn't really<br>
       a true "service" and more like "CNAME with benefits". (Sorry,<br>
couldn't resist the bad dating reference ;-))<br>
       Do I actually still need to add this to /etc/services? If so,<br>
then I'd have to do that for<br>
       all hosts in the environment, IdM servers, clients, etc., correct?<br>
<br>
       Truth be told, this is just being used for an alternative to a<br>
true h/w, s/w load balancer<br>
       for demonstration purposes so I'm sure adding it to the services<br>
file makes sense.<br>
<br>
Thank you both!<br>
<br>
-m<br>
<br>
<br>
<br>
<br>
On 07/22/2014 03:16 AM, Petr Spacek wrote:<br>
> On 22.7.2014 00:13, Mark Heslin wrote:<br>
>> Hi All,<br>
>><br>
>> I had some off-list exchanges with Petr Spacek on this but am still<br>
>> trying to<br>
>> work out the correct syntax.<br>
>> I have 2 hosts:<br>
>><br>
>>     - <a href="http://foo1.example.com" target="_blank">foo1.example.com</a><br>
>>     - <a href="http://foo2.example.com" target="_blank">foo2.example.com</a><br>
>><br>
>> and would like to create a round-robin DNS srv record for both called<br>
>> <a href="http://foo.example.com" target="_blank">foo.example.com</a><br>
>><br>
>> I already have DNS entries for both hosts in IPA:<br>
>><br>
>>    # ipa dnsrecord-show <a href="http://example.com" target="_blank">example.com</a> foo1<br>
>>      Record name: foo1<br>
>>      A record: 10.0.0.1<br>
>>    # ipa dnsrecord-show <a href="http://example.com" target="_blank">example.com</a> foo2<br>
>>      Record name: foo2<br>
>>      A record: 10.0.0.2<br>
>><br>
>> I'd like to get the correct syntax for adding the srv record for foo.<br>
>> My understanding is that it should be something like this:<br>
>><br>
>>    # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>"<br>
>>    Record name: _foo.tcp<br>
>>    SRV record: 0 50 53 <a href="http://foo1.example.com" target="_blank">foo1.example.com</a><br>
>>    # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>> <a href="http://foo2.example.com" target="_blank">foo2.example.com</a>"<br>
>>    Record name: _foo.tcp<br>
>>    SRV record: 0 50 53 <a href="http://foo2.example.com" target="_blank">foo2.example.com</a><br>
>><br>
>> which seemed to be added ok but on second glance I think not:<br>
>><br>
>>    # host -t srv _<a href="http://foo.tcp.example.com" target="_blank">foo.tcp.example.com</a><br>
>>    _foo.tcp..<a href="http://example.com" target="_blank">example.com</a> has SRV record 0 50 53<br>
>> <a href="http://foo1.example.com.example.com" target="_blank">foo1.example.com.example.com</a>.<br>
>>    _foo.tcp..<a href="http://example.com" target="_blank">example.com</a> has SRV record 0 50 53<br>
>> <a href="http://foo2.example.com.example.com" target="_blank">foo2.example.com.example.com</a>.<br>
>><br>
>> In looking over the description of rfc2782<br>
>> <<a href="http://en.wikipedia.org/wiki/SRV_record" target="_blank">http://en.wikipedia.org/wiki/SRV_record</a>> it appears the IPA syntax is a<br>
>> little different,<br>
><br>
> I don't think so :-)<br>
><br>
> Please note the trailing dot in "target" part of<br>
> <a href="http://en.wikipedia.org/wiki/SRV_record#Record_format" target="_blank">http://en.wikipedia.org/wiki/SRV_record#Record_format</a>.<br>
><br>
> IPA behaves in the same way as BIND 9: All domain names without<br>
> trailing dot are automatically extended with zone origin, i.e.<br>
> "<a href="http://example.com" target="_blank">example.com</a>.".<br>
><br>
> You have two options:<br>
> # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53 foo1" (DNS<br>
> server will automatically append "<a href="http://example.com" target="_blank">example.com</a>.")<br>
><br>
> or<br>
><br>
> # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>."<br>
> (please note the trailing dot)<br>
><br>
><br>
><br>
> Another note is about "_foo". "foo" should be "service name" according to<br>
> <a href="http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml" target="_blank">http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml</a><br>

><br>
><br>
> It will probably not cause any problems if you invent your own name<br>
> (preferably prefixed with x- to avoid collisions in future, e.g.<br>
> "_x-foo"), but it will not hurt you if you register your protocol into<br>
> the registry :-)<br>
> See <a href="http://tools.ietf.org/html/rfc6335" target="_blank">http://tools.ietf.org/html/rfc6335</a><br>
><br>
>> and the documentation is scarce so admittedly I'm taking a swag at<br>
>> this ;-)<br>
>><br>
>> I can do this fine without srv but don't have enough familiarity with<br>
>> DNS srv<br>
>> here.<br>
>> Can anyone help clarify what I'm missing? I'd like to have equal<br>
>> weighting,<br>
>> priority<br>
>> to both hosts - I'm assuming the port (53) is correct for DNS here as<br>
>> well.<br>
> What are you trying to achieve? The port number refers to port used by<br>
> your application, not to DNS.<br>
><br>
<br>
<br>
--<br>
<br>
Red Hat Reference Architectures<br>
<br>
Follow Us: <a href="https://twitter.com/RedHatRefArch" target="_blank">https://twitter.com/RedHatRefArch</a><br>
Plus Us: <a href="https://plus.google.com/u/0/b/114152126783830728030/" target="_blank">https://plus.google.com/u/0/b/114152126783830728030/</a><br>
Like Us: <a href="https://www.facebook.com/rhrefarch" target="_blank">https://www.facebook.com/rhrefarch</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 22 Jul 2014 08:06:42 -0400<br>
From: Mark Heslin <<a href="mailto:mheslin@redhat.com">mheslin@redhat.com</a>><br>
To: Petr Spacek <<a href="mailto:pspacek@redhat.com">pspacek@redhat.com</a>>, Martin Basti <<a href="mailto:mbasti@redhat.com">mbasti@redhat.com</a>><br>
Cc: <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
Subject: Re: [Freeipa-users] Correct syntax for round-robin DNS srv<br>
        records<br>
Message-ID: <<a href="mailto:53CE53D2.8090906@redhat.com">53CE53D2.8090906@redhat.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
On 07/22/2014 08:00 AM, Mark Heslin wrote:<br>
> Martin, Petr,<br>
><br>
> I didn't see that missing dot "." - good catch. As always the devil is<br>
> in the details :-)<br>
><br>
> Two follow up questions:<br>
><br>
>  1. I've set the priority and weighting equally here but I will add a<br>
> third host<br>
>       so would it make sense to just set both priority and weight to<br>
> "0" for all three hosts?:<br>
><br>
>        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>."<br>
>        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
> <a href="http://foo2.example.com" target="_blank">foo2.example.com</a>."<br>
>        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
> <a href="http://foo3.example.com" target="_blank">foo3.example.com</a>."<br>
><br>
>  2. To Petr's point about registering the "_foo.tcp" service. By<br>
> definition this isn't really<br>
>       a true "service" and more like "CNAME with benefits". (Sorry,<br>
> couldn't resist the bad dating reference ;-))<br>
>       Do I actually still need to add this to /etc/services? If so,<br>
> then I'd have to do that for<br>
>       all hosts in the environment, IdM servers, clients, etc., correct?<br>
><br>
>       Truth be told, this is just being used for an alternative to a<br>
> true h/w, s/w load balancer<br>
>       for demonstration purposes so I'm sure adding it to the services<br>
> file makes sense.<br>
<br>
Gah! I meant to say I'm *not* sure adding it to the services file makes<br>
sense.<br>
<br>
<br>
><br>
> Thank you both!<br>
><br>
> -m<br>
><br>
><br>
><br>
><br>
> On 07/22/2014 03:16 AM, Petr Spacek wrote:<br>
>> On 22.7.2014 00:13, Mark Heslin wrote:<br>
>>> Hi All,<br>
>>><br>
>>> I had some off-list exchanges with Petr Spacek on this but am still<br>
>>> trying to<br>
>>> work out the correct syntax.<br>
>>> I have 2 hosts:<br>
>>><br>
>>>     - <a href="http://foo1.example.com" target="_blank">foo1.example.com</a><br>
>>>     - <a href="http://foo2.example.com" target="_blank">foo2.example.com</a><br>
>>><br>
>>> and would like to create a round-robin DNS srv record for both called<br>
>>> <a href="http://foo.example.com" target="_blank">foo.example.com</a><br>
>>><br>
>>> I already have DNS entries for both hosts in IPA:<br>
>>><br>
>>>    # ipa dnsrecord-show <a href="http://example.com" target="_blank">example.com</a> foo1<br>
>>>      Record name: foo1<br>
>>>      A record: 10.0.0.1<br>
>>>    # ipa dnsrecord-show <a href="http://example.com" target="_blank">example.com</a> foo2<br>
>>>      Record name: foo2<br>
>>>      A record: 10.0.0.2<br>
>>><br>
>>> I'd like to get the correct syntax for adding the srv record for foo.<br>
>>> My understanding is that it should be something like this:<br>
>>><br>
>>>    # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>>> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>"<br>
>>>    Record name: _foo.tcp<br>
>>>    SRV record: 0 50 53 <a href="http://foo1.example.com" target="_blank">foo1.example.com</a><br>
>>>    # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>>> <a href="http://foo2.example.com" target="_blank">foo2.example.com</a>"<br>
>>>    Record name: _foo.tcp<br>
>>>    SRV record: 0 50 53 <a href="http://foo2.example.com" target="_blank">foo2.example.com</a><br>
>>><br>
>>> which seemed to be added ok but on second glance I think not:<br>
>>><br>
>>>    # host -t srv _<a href="http://foo.tcp.example.com" target="_blank">foo.tcp.example.com</a><br>
>>>    _foo.tcp..<a href="http://example.com" target="_blank">example.com</a> has SRV record 0 50 53<br>
>>> <a href="http://foo1.example.com.example.com" target="_blank">foo1.example.com.example.com</a>.<br>
>>>    _foo.tcp..<a href="http://example.com" target="_blank">example.com</a> has SRV record 0 50 53<br>
>>> <a href="http://foo2.example.com.example.com" target="_blank">foo2.example.com.example.com</a>.<br>
>>><br>
>>> In looking over the description of rfc2782<br>
>>> <<a href="http://en.wikipedia.org/wiki/SRV_record" target="_blank">http://en.wikipedia.org/wiki/SRV_record</a>> it appears the IPA syntax<br>
>>> is a<br>
>>> little different,<br>
>><br>
>> I don't think so :-)<br>
>><br>
>> Please note the trailing dot in "target" part of<br>
>> <a href="http://en.wikipedia.org/wiki/SRV_record#Record_format" target="_blank">http://en.wikipedia.org/wiki/SRV_record#Record_format</a>.<br>
>><br>
>> IPA behaves in the same way as BIND 9: All domain names without<br>
>> trailing dot are automatically extended with zone origin, i.e.<br>
>> "<a href="http://example.com" target="_blank">example.com</a>.".<br>
>><br>
>> You have two options:<br>
>> # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53 foo1"<br>
>> (DNS server will automatically append "<a href="http://example.com" target="_blank">example.com</a>.")<br>
>><br>
>> or<br>
>><br>
>> # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>."<br>
>> (please note the trailing dot)<br>
>><br>
>><br>
>><br>
>> Another note is about "_foo". "foo" should be "service name"<br>
>> according to<br>
>> <a href="http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml" target="_blank">http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml</a><br>

>><br>
>><br>
>> It will probably not cause any problems if you invent your own name<br>
>> (preferably prefixed with x- to avoid collisions in future, e.g.<br>
>> "_x-foo"), but it will not hurt you if you register your protocol<br>
>> into the registry :-)<br>
>> See <a href="http://tools.ietf.org/html/rfc6335" target="_blank">http://tools.ietf.org/html/rfc6335</a><br>
>><br>
>>> and the documentation is scarce so admittedly I'm taking a swag at<br>
>>> this ;-)<br>
>>><br>
>>> I can do this fine without srv but don't have enough familiarity<br>
>>> with DNS srv<br>
>>> here.<br>
>>> Can anyone help clarify what I'm missing? I'd like to have equal<br>
>>> weighting,<br>
>>> priority<br>
>>> to both hosts - I'm assuming the port (53) is correct for DNS here<br>
>>> as well.<br>
>> What are you trying to achieve? The port number refers to port used<br>
>> by your application, not to DNS.<br>
>><br>
><br>
><br>
<br>
<br>
--<br>
<br>
Red Hat Reference Architectures<br>
<br>
Follow Us: <a href="https://twitter.com/RedHatRefArch" target="_blank">https://twitter.com/RedHatRefArch</a><br>
Plus Us: <a href="https://plus.google.com/u/0/b/114152126783830728030/" target="_blank">https://plus.google.com/u/0/b/114152126783830728030/</a><br>
Like Us: <a href="https://www.facebook.com/rhrefarch" target="_blank">https://www.facebook.com/rhrefarch</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 22 Jul 2014 14:33:28 +0100<br>
From: Shashi M <<a href="mailto:svm2k20@gmail.com">svm2k20@gmail.com</a>><br>
To: <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
Subject: [Freeipa-users] DNS migration from AD to freeIPA managed DNS<br>
Message-ID:<br>
        <<a href="mailto:CAEouxn_pPv%2BksJGOFZQg%2BCU%2BsO7tuNx_nRqi81H2UrvKUEPquQ@mail.gmail.com">CAEouxn_pPv+ksJGOFZQg+CU+sO7tuNx_nRqi81H2UrvKUEPquQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi All,<br>
<br>
I am looking for some help on DNS configuration migraion from AD to FreeIPA.<br>
<br>
I am planning implement AD trust in my current freeIPA setup which is<br>
currently having AD-IPA one way sync.<br>
<br>
New setup, I would also like to mange the DNS throug IPA. Currently unix<br>
DNS is hosted on Windows AD servers. I will have to import all the existing<br>
DNS records in freeIPA.<br>
<br>
Is it possible to configure freeIPA DNS service as secondary (slave) to<br>
existing AD DNS servers?<br>
<br>
my planned approach to migrate dns is as below<br>
<br>
- Setup new IPA servers with DNS for <a href="http://unix.example.com" target="_blank">unix.example.com</a> domain....<br>
- Allow zone transfer from AD to freeIPA to populate freeIPA DNS servers<br>
- Promote freeIPA as primary DNS server and make AD as secondary DNS<br>
<br>
Is this achivable with freeIPA currently? If not is it possible to have<br>
bind 9 installed on freeIPA server and still DNS be managed by freeIPA?<br>
<br>
<br>
Regards,<br>
Shashikant<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://www.redhat.com/archives/freeipa-users/attachments/20140722/ebea6d3d/attachment.html" target="_blank">https://www.redhat.com/archives/freeipa-users/attachments/20140722/ebea6d3d/attachment.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 22 Jul 2014 17:01:18 +0200<br>
From: Petr Spacek <<a href="mailto:pspacek@redhat.com">pspacek@redhat.com</a>><br>
To: <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
Subject: Re: [Freeipa-users] DNS migration from AD to freeIPA managed<br>
        DNS<br>
Message-ID: <<a href="mailto:53CE7CBE.8000205@redhat.com">53CE7CBE.8000205@redhat.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
On 22.7.2014 15:33, Shashi M wrote:<br>
> I am looking for some help on DNS configuration migraion from AD to FreeIPA.<br>
><br>
> I am planning implement AD trust in my current freeIPA setup which is<br>
> currently having AD-IPA one way sync.<br>
><br>
> New setup, I would also like to mange the DNS throug IPA. Currently unix<br>
> DNS is hosted on Windows AD servers. I will have to import all the existing<br>
> DNS records in freeIPA.<br>
><br>
> Is it possible to configure freeIPA DNS service as secondary (slave) to<br>
> existing AD DNS servers?<br>
><br>
> my planned approach to migrate dns is as below<br>
><br>
> - Setup new IPA servers with DNS for <a href="http://unix.example.com" target="_blank">unix.example.com</a> domain....<br>
> - Allow zone transfer from AD to freeIPA to populate freeIPA DNS servers<br>
> - Promote freeIPA as primary DNS server and make AD as secondary DNS<br>
<br>
FreeIPA cannot be slave of another DNS server (yet :-). You have the option to<br>
use normal zone transfer, convert data from zone file to LDIF and import the<br>
LDIF directly to LDAP.<br>
<br>
See <a href="https://fedorahosted.org/bind-dyndb-ldap/wiki/Migration" target="_blank">https://fedorahosted.org/bind-dyndb-ldap/wiki/Migration</a> and let us know if<br>
you need any assistance.<br>
<br>
After that you will see all the data in FreeIPA user interface and all FreeIPA<br>
servers will serve the same copy of the data.<br>
<br>
> Is this achivable with freeIPA currently? If not is it possible to have<br>
> bind 9 installed on freeIPA server and still DNS be managed by freeIPA?<br>
<br>
FreeIPA uses BIND 9 for it's DNS but all data managed by FreeIPA have to be in<br>
LDAP, not in master files. Anyway, the conversion procedure linked above is<br>
pretty straightforward.<br>
<br>
Have a nice day!<br>
<br>
--<br>
Petr^2 Spacek<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 22 Jul 2014 10:04:07 -0500<br>
From: KodaK <<a href="mailto:sakodak@gmail.com">sakodak@gmail.com</a>><br>
To: "<a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a>><br>
Subject: [Freeipa-users] Mass update IP addresses<br>
Message-ID:<br>
        <<a href="mailto:CAA9J0ZH8MkL4N55TK-MhHw2UbK-EtxmhJrLpp4UXPKAZXT161w@mail.gmail.com">CAA9J0ZH8MkL4N55TK-MhHw2UbK-EtxmhJrLpp4UXPKAZXT161w@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
For various reasons, I need to move a lot of my IPA clients to a different<br>
subnet.<br>
<br>
I'd like to automate this as much as possible.  My initial thought is to<br>
use a combination<br>
of puppet and ipa commands, but I wanted to see if anyone had any advice.<br>
 Anything I<br>
should watch out for in IPA?  I know that's vague, but I'm just seeking<br>
general advice.<br>
<br>
Thanks,<br>
<br>
--Jason<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://www.redhat.com/archives/freeipa-users/attachments/20140722/947bd0f9/attachment.html" target="_blank">https://www.redhat.com/archives/freeipa-users/attachments/20140722/947bd0f9/attachment.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 22 Jul 2014 17:54:36 +0200<br>
From: Petr Spacek <<a href="mailto:pspacek@redhat.com">pspacek@redhat.com</a>><br>
To: Mark Heslin <<a href="mailto:mheslin@redhat.com">mheslin@redhat.com</a>>, Martin Basti <<a href="mailto:mbasti@redhat.com">mbasti@redhat.com</a>><br>
Cc: <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
Subject: Re: [Freeipa-users] Correct syntax for round-robin DNS srv<br>
        records<br>
Message-ID: <<a href="mailto:53CE893C.4090807@redhat.com">53CE893C.4090807@redhat.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
On 22.7.2014 14:06, Mark Heslin wrote:<br>
> On 07/22/2014 08:00 AM, Mark Heslin wrote:<br>
>> Martin, Petr,<br>
>><br>
>> I didn't see that missing dot "." - good catch. As always the devil is in<br>
>> the details :-)<br>
>><br>
>> Two follow up questions:<br>
>><br>
>>  1. I've set the priority and weighting equally here but I will add a third<br>
>> host<br>
>>       so would it make sense to just set both priority and weight to "0" for<br>
>> all three hosts?:<br>
>><br>
>>        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
>> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>."<br>
>>        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
>> <a href="http://foo2.example.com" target="_blank">foo2.example.com</a>."<br>
>>        # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 0 53<br>
>> <a href="http://foo3.example.com" target="_blank">foo3.example.com</a>."<br>
>><br>
>>  2. To Petr's point about registering the "_foo.tcp" service. By definition<br>
>> this isn't really<br>
>>       a true "service" and more like "CNAME with benefits". (Sorry, couldn't<br>
>> resist the bad dating reference ;-))<br>
>>       Do I actually still need to add this to /etc/services? If so, then I'd<br>
>> have to do that for<br>
>>       all hosts in the environment, IdM servers, clients, etc., correct?<br>
>><br>
>>       Truth be told, this is just being used for an alternative to a true<br>
>> h/w, s/w load balancer<br>
>>       for demonstration purposes so I'm sure adding it to the services file<br>
>> makes sense.<br>
><br>
> Gah! I meant to say I'm *not* sure adding it to the services file makes sense.<br>
<br>
For test purposes you can use whatever, preferably something like "_x-test".<br>
No modification to /etc/services is necessary. AFAIK /etc/services just allows<br>
clients to translate service name to port number but this will not be used<br>
anyway because clients will get port number from DNS.<br>
<br>
Petr^2 Spacek<br>
<br>
>> Thank you both!<br>
>><br>
>> -m<br>
>><br>
>><br>
>><br>
>><br>
>> On 07/22/2014 03:16 AM, Petr Spacek wrote:<br>
>>> On 22.7.2014 00:13, Mark Heslin wrote:<br>
>>>> Hi All,<br>
>>>><br>
>>>> I had some off-list exchanges with Petr Spacek on this but am still trying to<br>
>>>> work out the correct syntax.<br>
>>>> I have 2 hosts:<br>
>>>><br>
>>>>     - <a href="http://foo1.example.com" target="_blank">foo1.example.com</a><br>
>>>>     - <a href="http://foo2.example.com" target="_blank">foo2.example.com</a><br>
>>>><br>
>>>> and would like to create a round-robin DNS srv record for both called<br>
>>>> <a href="http://foo.example.com" target="_blank">foo.example.com</a><br>
>>>><br>
>>>> I already have DNS entries for both hosts in IPA:<br>
>>>><br>
>>>>    # ipa dnsrecord-show <a href="http://example.com" target="_blank">example.com</a> foo1<br>
>>>>      Record name: foo1<br>
>>>>      A record: 10.0.0.1<br>
>>>>    # ipa dnsrecord-show <a href="http://example.com" target="_blank">example.com</a> foo2<br>
>>>>      Record name: foo2<br>
>>>>      A record: 10.0.0.2<br>
>>>><br>
>>>> I'd like to get the correct syntax for adding the srv record for foo.<br>
>>>> My understanding is that it should be something like this:<br>
>>>><br>
>>>>    # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>>>> <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>"<br>
>>>>    Record name: _foo.tcp<br>
>>>>    SRV record: 0 50 53 <a href="http://foo1.example.com" target="_blank">foo1.example.com</a><br>
>>>>    # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53<br>
>>>> <a href="http://foo2.example.com" target="_blank">foo2.example.com</a>"<br>
>>>>    Record name: _foo.tcp<br>
>>>>    SRV record: 0 50 53 <a href="http://foo2.example.com" target="_blank">foo2.example.com</a><br>
>>>><br>
>>>> which seemed to be added ok but on second glance I think not:<br>
>>>><br>
>>>>    # host -t srv _<a href="http://foo.tcp.example.com" target="_blank">foo.tcp.example.com</a><br>
>>>>    _foo.tcp..<a href="http://example.com" target="_blank">example.com</a> has SRV record 0 50 53 <a href="http://foo1.example.com.example.com" target="_blank">foo1.example.com.example.com</a>.<br>
>>>>    _foo.tcp..<a href="http://example.com" target="_blank">example.com</a> has SRV record 0 50 53 <a href="http://foo2.example.com.example.com" target="_blank">foo2.example.com.example.com</a>.<br>
>>>><br>
>>>> In looking over the description of rfc2782<br>
>>>> <<a href="http://en.wikipedia.org/wiki/SRV_record" target="_blank">http://en.wikipedia.org/wiki/SRV_record</a>> it appears the IPA syntax is a<br>
>>>> little different,<br>
>>><br>
>>> I don't think so :-)<br>
>>><br>
>>> Please note the trailing dot in "target" part of<br>
>>> <a href="http://en.wikipedia.org/wiki/SRV_record#Record_format" target="_blank">http://en.wikipedia.org/wiki/SRV_record#Record_format</a>.<br>
>>><br>
>>> IPA behaves in the same way as BIND 9: All domain names without trailing<br>
>>> dot are automatically extended with zone origin, i.e. "<a href="http://example.com" target="_blank">example.com</a>.".<br>
>>><br>
>>> You have two options:<br>
>>> # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53 foo1" (DNS<br>
>>> server will automatically append "<a href="http://example.com" target="_blank">example.com</a>.")<br>
>>><br>
>>> or<br>
>>><br>
>>> # ipa dnsrecord-add <a href="http://example.com" target="_blank">example.com</a> _foo.tcp --srv-rec="0 50 53 <a href="http://foo1.example.com" target="_blank">foo1.example.com</a>."<br>
>>> (please note the trailing dot)<br>
>>><br>
>>><br>
>>><br>
>>> Another note is about "_foo". "foo" should be "service name" according to<br>
>>> <a href="http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml" target="_blank">http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml</a><br>

>>><br>
>>><br>
>>> It will probably not cause any problems if you invent your own name<br>
>>> (preferably prefixed with x- to avoid collisions in future, e.g. "_x-foo"),<br>
>>> but it will not hurt you if you register your protocol into the registry :-)<br>
>>> See <a href="http://tools.ietf.org/html/rfc6335" target="_blank">http://tools.ietf.org/html/rfc6335</a><br>
>>><br>
>>>> and the documentation is scarce so admittedly I'm taking a swag at this ;-)<br>
>>>><br>
>>>> I can do this fine without srv but don't have enough familiarity with DNS srv<br>
>>>> here.<br>
>>>> Can anyone help clarify what I'm missing? I'd like to have equal weighting,<br>
>>>> priority<br>
>>>> to both hosts - I'm assuming the port (53) is correct for DNS here as well.<br>
>>> What are you trying to achieve? The port number refers to port used by your<br>
>>> application, not to DNS.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Freeipa-users mailing list<br>
<a href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
<br>
End of Freeipa-users Digest, Vol 72, Issue 66<br>
*********************************************<br>
</blockquote></div><br></div>