<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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>
    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
      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 class="moz-txt-link-freetext" href="https://twitter.com/RedHatRefArch">https://twitter.com/RedHatRefArch</a>
Plus Us: <a 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 class="moz-txt-link-freetext" href="https://www.facebook.com/rhrefarch">https://www.facebook.com/rhrefarch</a>
</pre>
  </body>
</html>