<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/05/15 22:28, Andrey Ptashnik
wrote:<br>
</div>
<blockquote
cite="mid:A7B06BD4-F241-4E1C-8DE4-18193378DB74@cccis.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
Hello Team,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
We are hosting a few servers at Amazon and using their Elastic
Load Balancing service that gives us a link to a load balancer
in the following format:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
webserver-1234567890.us-east-1.elb.amazonaws.com</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
I was looking for a ways to implement a shorter alias using
CNAME like:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;
font-size: 14px;">
webserver.mydomain.com pointing to longer link from the load
balancer webserver-1234567890.us-west-2.elb.amazonaws.com</div>
<div>
<div id="">
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
Is there a way to do it in RHEL 7.1 with IPA server 4.1.0
using different domain names?</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
Regards,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
Andrey</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,
sans-serif; font-size: 14px;">
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
Hello Andrey,<br>
<br>
If I understand correctly, IPA manages mydomain.com zone, so adding
CNAME record should be simple:<br>
<br>
ipa dnsrecord-add mydomain.com webserver
--cname-rec='webserver-1234567890.us-west-2.elb.amazonaws.com.' #
<-- do not forget to add dot at the end<br>
<br>
If mydomain.com is managed outside IPA, the CNAME should be set on
that external server, IPA cannot help in this case.<br>
<br>
Martin<br>
<pre class="moz-signature" cols="72">--
Martin Basti</pre>
</body>
</html>