<div dir="ltr"><div><div><div><div>Thanks Petr. <br></div><br></div>My use case is: we have scripts that connect to some services, let's say a docker registry. <br></div>I want these scripts to be work either internally or externally, without changing the URLs. <br></div>What would the best or easiest setting to achieve this ? <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 8, 2015 at 4:25 PM, Petr Spacek <span dir="ltr"><<a href="mailto:pspacek@redhat.com" target="_blank">pspacek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8.7.2015 15:07, Karl Forner wrote:<br>
> On Wed, Jul 8, 2015 at 2:32 PM, Jan Pazdziora <<a href="mailto:jpazdziora@redhat.com">jpazdziora@redhat.com</a>> wrote:<br>
><br>
>> On Wed, Jul 08, 2015 at 02:26:02PM +0200, Karl Forner wrote:<br>
>>><br>
>>> When using my freeIPA DNS name server for my domain example.test, I need<br>
>> to<br>
>>> exclude some names from the server( to be forwarded to the DNS forwarder<br>
>>> for instance.<br>
>>><br>
>>> For example, I'd like foo.example.test not to be resolved, but forwarded.<br>
>>> How could I implement this ?<br>
>><br>
>> That would mean you have two different nameservers authoritative for<br>
>> the same DNS domain. That is generally not recommended setup.<br>
>><br>
><br>
> Yes, that's what I read, but I do not know how to easily do differently.<br>
> But in the end, what I'd like for my users, is to have foo.example.test<br>
> resolved from the outside to my external server IP, and from the inside to<br>
> the internal server IP.<br>
<br>
</span>Such setup is generally not recommended because it is usually pain when it<br>
comes to long-term operation and maintenance.<br>
<br>
<a href="http://www.freeipa.org/page/DNS#Caveats" rel="noreferrer" target="_blank">http://www.freeipa.org/page/DNS#Caveats</a><br>
<a href="http://www.freeipa.org/page/Deployment_Recommendations#DNS" rel="noreferrer" target="_blank">http://www.freeipa.org/page/Deployment_Recommendations#DNS</a><br>
<br>
<br>
Two main use-cases are:<br>
<br>
a) Two or more different servers are using the same name and which server is<br>
used depends on client's network.<br>
<br>
This is usually very cumbersome because DNS caching will play against you,<br>
especially when we introduce system-wide cache into Fedora 23.<br>
<br>
It is also hard to manage and debug because you have to ask the same question<br>
from different networks etc. And it will be harder when you deploy DNSSEC to<br>
increase security...<br>
<br>
The typical recommendation is to use a sub-domain for internal names, e.g.<br>
<a href="http://i.example.com" rel="noreferrer" target="_blank">i.example.com</a> for internal names and <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> for externally-resolvable names.<br>
<br>
<br>
b) Seconds use-case: Attempt to optimize IP routing by using DNS tricks.<br>
<br>
Yes, it is as bad idea as it sounds.<br>
<span class=""><br>
<br>
>> Can't you make foo.example.test a CNAME to <a href="http://foo.example.org" rel="noreferrer" target="_blank">foo.example.org</a> or another<br>
>> hostname, in domain with different authoritative DNS server?<br>
>><br>
><br>
> Hmm yes that should work, thanks !<br>
<br>
</span>Please keep in mind that it only hides the problem under yet another layer of<br>
indirection.<br>
<br>
<humor><br>
Yes, it is always possible! We know it because it is written in<br>
The Twelve Networking Truths: <a href="https://tools.ietf.org/html/rfc1925#page-2" rel="noreferrer" target="_blank">https://tools.ietf.org/html/rfc1925#page-2</a> point<br>
(6) but you should take into account point (3) into account, too :-)<br>
</humor><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Petr^2 Spacek<br>
<br>
--<br>
Manage your subscription for the Freeipa-users mailing list:<br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
</font></span></blockquote></div><br></div>