<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 22/07/14 00:13, Mark Heslin wrote:<br>
    </div>
    <blockquote cite="mid:53CD907A.6070407@redhat.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi All,<br>
      <br>
      I had some off-list exchanges with Petr Spacek on this but am
      still trying to work out the correct syntax.<br>
      I have 2 hosts:<br>
      <br>
         - foo1.example.com<br>
         - foo2.example.com<br>
      <br>
      and would like to create a round-robin DNS srv record for both
      called foo.example.com<br>
      <br>
      I already have DNS entries for both hosts in IPA:<br>
      <br>
        # ipa dnsrecord-show example.com foo1<br>
          Record name: foo1<br>
          A record: 10.0.0.1<br>
        # ipa dnsrecord-show example.com 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 example.com _foo.tcp --srv-rec="0 50 53
      foo1.example.com"<br>
        Record name: _foo.tcp<br>
        SRV record: 0 50 53 foo1.example.com<br>
        # ipa dnsrecord-add example.com _foo.tcp --srv-rec="0 50 53
      foo2.example.com"<br>
        Record name: _foo.tcp<br>
        SRV record: 0 50 53 foo2.example.com<br>
      <br>
    </blockquote>
    Hello Mark,<br>
    <br>
    add dot at the end of SRV target.<br>
    ipa dnsrecord-add example.com _foo.tcp --srv-rec="0 50 53
    foo1.example.com."<br>
    <br>
    DNS server is adding 'example.com.' to all non-FQDN domain names<br>
    <blockquote cite="mid:53CD907A.6070407@redhat.com" type="cite">
      which seemed to be added ok but on second glance I think not:<br>
      <br>
        # host -t srv _foo.tcp.example.com <br>
        _foo.tcp..example.com has SRV record 0 50 53
      foo1.example.com.example.com.<br>
        _foo.tcp..example.com has SRV record 0 50 53
      foo2.example.com.example.com.<br>
      <br>
      In looking over the description of <a moz-do-not-send="true"
        href="http://en.wikipedia.org/wiki/SRV_record"> rfc2782</a> it
      appears the IPA syntax is a little different,<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 here.<br>
      Can anyone help clarify what I'm missing? I'd like to have equal
      weighting, priority<br>
      to both hosts - I'm assuming the port (53) is correct for DNS here
      as well.<br>
      <br>
      Thank you very much,<br>
      <br>
      -m<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 

Red Hat Reference Architectures

Follow Us: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://twitter.com/RedHatRefArch">https://twitter.com/RedHatRefArch</a>
Plus Us: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://plus.google.com/u/0/b/114152126783830728030/">https://plus.google.com/u/0/b/114152126783830728030/</a>
Like Us: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.facebook.com/rhrefarch">https://www.facebook.com/rhrefarch</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Martin Basti</pre>
  </body>
</html>