[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: resolving hosts with mesos-dns not working with "/" in the appid
From:       Rad Gruchalski <radek () gruchalski ! com>
Date:       2015-11-18 11:59:23
Message-ID: A94888D18B9B424FAB989826F9B0A842 () gruchalski ! com
[Download RAW message or body]

According to the docs, it is possible:  

Mesos-DNS follows RFC 952 for name formatting. All fields used to construct hostnames \
for A records and service names for SRV records must be up to 24 characters and drawn \
from the alphabet (A-Z), digits (0-9) and minus sign (-). No distinction is made \
between upper and lower case. If the task name does not comply with these \
constraints, Mesos-DNS will trim it, remove all invalid characters, and replace \
period (.) with sign (-) for task names.

However, it is a bit dodgy, specially if your app id is longer than 24 characters. It \
sometimes work, sometimes does not.  

I think your record will go along the lines of:

mesosspark-shuffle-service.marathon.mesos and so on.

Be careful about the 24 character limit. Depending on where the invalid characters \
happen in the string, it may render the whole record unavailable (mesos-dns will not \
be able to return it).  










Kind regards,

Radek Gruchalski

radek@gruchalski.com (mailto:radek@gruchalski.com)
 \
(mailto:radek@gruchalski.com) de.linkedin.com/in/radgruchalski/ \
(http://de.linkedin.com/in/radgruchalski/)

Confidentiality:
This communication is intended for the above-named person and may be confidential \
and/or legally privileged. If it has come to you in error you must take no action \
based on it, nor must you copy or show it to anyone; please delete/destroy and inform \
the sender immediately.



On Tuesday, 17 November 2015 at 20:40, Rodrick Brown wrote:

> Is it possible to resolve app-ids with / in them when using mesos-dns?  
> 
> 
> I have apps defined like the following:  
> 
> /kafkadirectconsumer/es-services  
> /mesos/spark-shuffle-service
> 
> 
> however trying to resolve any appID with a "/" in the name returns NXDOMAIN  
> In the above case I thought the following should work  
> 
> $ dig mess_spark-shuffle-service.marathon.mesos  
> 
> I don't get the IP of those service.  
> 
> 
> --  
> 
> 
> 
> 
> Rodrick Brown / DevOPs Engineer  
> +1 917 445 6839 / rodrick@orchardplatform.com (mailto:charlie@orchardplatform.com)
> 
> 
> Orchard Platform  
> 101 5th Avenue, 4th Floor, New York, NY 10003  
> http://www.orchardplatform.com (http://www.orchardplatform.com/)
> 
> 
> Orchard Blog (http://www.orchardplatform.com/blog/) | Marketplace Lending Meetup \
> (http://www.meetup.com/Peer-to-Peer-Lending-P2P/) 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> NOTICE TO RECIPIENTS: This communication is confidential and intended for the use \
> of the addressee only. If you are not an intended recipient of this communication, \
> please delete it immediately and notify the sender by return email. Unauthorized \
> reading, dissemination, distribution or copying of this communication is \
> prohibited. This communication does not constitute an offer to sell or a \
> solicitation of an indication of interest to purchase any loan, security or any \
> other financial product or instrument, nor is it an offer to sell or a solicitation \
> of an indication of interest to purchase any products or services to any persons \
> who are prohibited from receiving such information under applicable law. The \
> contents of this communication may not be accurate or complete and are subject to \
> change without notice. As such, Orchard App, Inc. (including its subsidiaries and \
> affiliates, "Orchard") makes no representation regarding the accuracy or \
> completeness of the information contained herein. The intended recipient is advised \
> to consult its own professional advisors, including those specializing in legal, \
> tax and accounting matters. Orchard does not provide legal, tax or accounting \
> advice.  


[Attachment #3 (text/html)]

                <div>
                    According to the docs, it is possible:
                </div><div><br></div><div>Mesos-DNS follows RFC 952 for name \
formatting. All fields used to construct hostnames for A records and service names \
for SRV records must be up to 24 characters and drawn from the alphabet (A-Z), digits \
(0-9) and minus sign (-).&nbsp;No distinction is made between upper and lower case. \
If the task name does not comply with these constraints, Mesos-DNS will trim it, \
remove all invalid characters, and replace period (.) with sign (-) for task \
names.</div><div><br></div><div>However, it is a bit dodgy, specially if your app id \
is longer than 24 characters. It sometimes work, sometimes does not.</div>  \
<div><div><br></div><div>I think your record will go along the lines \
of:</div><div><br></div><div>mesosspark-shuffle-service.marathon.mesos and so \
on.</div><div><br></div><div>Be careful about the 24 character limit. Depending on \
where the invalid characters happen in the string, it may render the whole record \
unavailable (mesos-dns will not be able to return it).</div>  
		
		


<p style="font-family: Helvetica; font-size: 10pt; margin-bottom: 0cm;">
		
		
		


</p><p style="font-family: Helvetica; font-size: 10pt; margin-bottom: 0cm;">
		
		
		


</p><p style="margin-bottom: 0cm;">
		
		
		


</p><p style="margin-bottom: 0cm"><font color="#000000"><font face="Helvetica, \
sans-serif"><font style="font-size: 9pt">Kind regards,
<br>Radek
Gruchalski<br>
</font></font></font><font face="Helvetica, sans-serif"><font \
style="font-size: 9pt"><a \
href="mailto:radek@gruchalski.com">radek@gruchalski.com</a><a \
href="mailto:radek@gruchalski.com">
</a></font></font><font color="#0084d1"><font \
face="Helvetica, sans-serif"><font style="font-size: 9pt"><br></font></font></font><a \
href="http://de.linkedin.com/in/radgruchalski/"><font color="#0084d1"><font \
face="Helvetica, sans-serif"><font style="font-size: \
9pt">de.linkedin.com/in/radgruchalski/</font></font></font></a><font \
color="#000000"><font face="Helvetica, sans-serif"><font style="font-size: \
9pt"><br><br></font></font></font><font color="#878787"><font face="Helvetica, \
sans-serif"><font style="font-size: \
8pt"><b>Confidentiality:<br></b></font></font></font><font color="#878787"><font \
face="Helvetica, sans-serif"><font style="font-size: 8pt">This communication is \
intended for the above-named person and may be confidential and/or legally \
privileged.<br>If it has come to you in error you must take no action based on it, \
nor must you copy or show it to anyone; please delete/destroy and inform the sender
immediately.</font></font></font></p></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, 17 November 2015 at 20:40, \
                Rodrick Brown wrote:</p>
                <blockquote type="cite" \
style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">  \
<span><div><div><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"><div>Is it possible to resolve app-ids with / in them when using \
mesos-dns?&nbsp;</div><div><br></div><div><br></div><div>I have apps defined like the \
following:&nbsp;</div><div><br></div><div>/kafkadirectconsumer/es-services&nbsp;</div> \
<div>/mesos/spark-shuffle-service</div><div><br></div><div><br></div><div>however \
trying to resolve any appID with a "/" in the name returns \
NXDOMAIN&nbsp;</div><div>In the above case I thought the following should \
work&nbsp;</div><div><br></div><div>$ dig \
mess_spark-shuffle-service.marathon.mesos&nbsp;</div><div><br></div><div>I don't get \
the IP of those service.&nbsp;</div><div><br></div><br><div> <div style="color: \
rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: \
0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); \
letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;">--&nbsp;<br><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size: 12.8000001907349px;"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin: 0px 0px 10px; color: \
rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: \
10px;"><a href="http://www.orchardplatform.com/" target="_blank" style="color: \
rgb(66, 139, 202); text-decoration: none; background-position: 0px 0px;"><img \
src="http://siggen.orchardplatform.com/Orchard_Logo_O_Green_WhiteBG.png" alt="Orchard \
Platform" border="0" style="border: 0px; vertical-align: middle;"></a></p><p \
style="margin: 0px 0px 10px; font-family: Verdana, Helvetica, Arial, sans-serif; \
font-size: 10px; line-height: 11px; color: rgb(102, 102, 102);"><span \
style="font-weight: bold; color: rgb(0, 109, 145);">Rodrick \
Brown</span>&nbsp;/&nbsp;DevOPs Engineer&nbsp;<br>+1 917 445 6839 /&nbsp;<a \
href="mailto:charlie@orchardplatform.com" target="_blank" style="color: rgb(0, 148, \
94); text-decoration: none; background-position: 0px \
0px;">rodrick@orchardplatform.com</a></p><p style="margin: 0px 0px 10px; color: \
rgb(51, 51, 51); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; \
line-height: 11px;"><span style="font-weight: bold; color: rgb(102, 102, \
102);">Orchard Platform</span>&nbsp;<br><span style="color: rgb(102, 102, 102);">101 \
5th Avenue, 4th Floor, New York, NY 10003</span>&nbsp;<br><a \
href="http://www.orchardplatform.com/" target="_blank" style="color: rgb(0, 148, 94); \
text-decoration: none; background-position: 0px \
0px;">http://www.orchardplatform.com</a></p><p style="margin: 0px 0px 10px; \
font-family: Verdana, Helvetica, Arial, sans-serif; color: rgb(102, 102, 102); \
font-size: 9px; line-height: 11px;"><a href="http://www.orchardplatform.com/blog/" \
target="_blank" style="color: rgb(102, 102, 102); text-decoration: none; font-size: \
10px; background-position: 0px 0px;">Orchard Blog</a>&nbsp;|&nbsp;<a \
href="http://www.meetup.com/Peer-to-Peer-Lending-P2P/" target="_blank" style="color: \
rgb(102, 102, 102); text-decoration: none; font-size: 10px; background-position: 0px \
0px;">Marketplace Lending \
Meetup</a></p></div></div></div></div></div></div></div></div></div></div> </div>
<br>
<br>
<div><font size="1"><font><b>NOTICE TO RECIPIENTS</b>: This communication is \
confidential and intended for the use of the addressee only. If you are not an \
intended recipient of this communication, please delete \
it&nbsp;</font><font>immediately and notify the sender by return email. Unauthorized \
reading, dissemination, distribution or copying of this communication is prohibited. \
This communication does not&nbsp;</font>constitute an offer to sell or a solicitation \
of an indication of interest to purchase any loan, security or any other financial \
product or instrument, nor is it an offer to sell or a solicitation of \
an&nbsp;indication of interest to purchase any products or services to any persons \
who are prohibited from receiving such information under applicable law. The contents \
of this communication may not be&nbsp;accurate or complete and are subject to change \
without notice. As such, Orchard App, Inc. (including its subsidiaries and \
affiliates, "Orchard") makes no representation regarding the&nbsp;<font>accuracy or \
completeness of the information contained herein. The intended recipient is advised \
to consult its own professional advisors, including those specializing in legal, tax \
and accounting&nbsp;</font>matters. Orchard does not provide legal, tax or accounting \
advice.</font></div></div></div></span>  
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic