<div dir="ltr">On Mon, Nov 11, 2013 at 12:00 AM, Julian Edwards <span dir="ltr"><<a href="mailto:julian.edwards@canonical.com" target="_blank">julian.edwards@canonical.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 09/11/13 03:56, Gavin Panella wrote:<br>
>> What about the /etc/hosts entry pointing the machine name to 127.0.1.1, do<br>
>> you know what adds that? Is it juju? Without that entry, it also works.<br>
><br>
> I think this is just the usual setting-the-hostname stuff: MAAS will<br>
> pass in the configured hostname (instead of the generated one) to the OS<br>
> installer, which sets the hostname accordingly, and adds an /etc/hosts<br>
> line so that traffic destined for itself (by name) gets routed via the<br>
> lo interface. Someone else - roaksoax or smoser most likely - will have<br>
> to confirm or correct that explanation.<br>
<br>
</div><a href="http://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution" target="_blank">http://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution</a><br>
<br>
It's correct policy to have that entry, it seems.<br>
<br></blockquote><div><br></div><div>Yeah, maybe. There is also this remark:</div><div>"<span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">For a system with a permanent IP address and a</span><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><a class="" href="http://en.wikipedia.org/wiki/FQDN" target="_top" style="font-family:'Times New Roman';font-size:medium">fully qualified domain name (FQDN)</a><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">provided by the</span><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><a class="" href="http://en.wikipedia.org/wiki/Domain_Name_System" target="_top" style="font-family:'Times New Roman';font-size:medium">Domain Name System (DNS)</a><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">, that canonical <host_name>.<domain_name> should be used instead of just <host_name>."</span></div>
<div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The *feels* like a bug in PG or its charm, to me. Having said that I<br>
did suggest once that we return IPs from MAAS's API instead of hostnames<br>
but that was shot down. I can't remember why, though. Gavin?<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>I think it's incorrect to return the CNAME, and have it be the hostname of the machine. It would be like having the <a href="http://www.company.com">www.company.com</a> host have an actual "<a href="http://www.company.com">www.company.com</a>" hostname.</div>
<div><br></div><div>I'll search around what other systems to when hostnames are used for access control, if they do the sort of lookup that postgresql does or not.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888">
<br>
<br>
--<br>
Mailing list: <a href="https://launchpad.net/~maas-devel" target="_blank">https://launchpad.net/~maas-devel</a><br>
Post to : <a href="mailto:maas-devel@lists.launchpad.net">maas-devel@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~maas-devel" target="_blank">https://launchpad.net/~maas-devel</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</font></span></blockquote></div><br></div></div>