You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Rodrick Brown <ro...@orchard-app.com> on 2015/11/17 20:40:40 UTC
resolving hosts with mesos-dns not working with "/" in the appid
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.
--
<http://www.orchardplatform.com/>
Rodrick Brown / DevOPs Engineer
+1 917 445 6839 / rodrick@orchardplatform.com <ma...@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.
Re: resolving hosts with mesos-dns not working with "/" in the appid
Posted by tommy xiao <xi...@gmail.com>.
same here
2015-11-18 3:54 GMT+08:00 Vinod Kone <vi...@gmail.com>:
> I think this is a question better suited for the mesos-dns or mesosphere
> mailing list.
>
> On Tue, Nov 17, 2015 at 11:40 AM, Rodrick Brown <ro...@orchard-app.com>
> 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.
>>
>>
>> --
>>
>> [image: Orchard Platform] <http://www.orchardplatform.com/>
>>
>> Rodrick Brown / DevOPs Engineer
>> +1 917 445 6839 / rodrick@orchardplatform.com
>> <ch...@orchardplatform.com>
>>
>> Orchard Platform
>> 101 5th Avenue, 4th Floor, New York, NY 10003
>> 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.
>>
>
>
--
Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com
Re: resolving hosts with mesos-dns not working with "/" in the appid
Posted by Vinod Kone <vi...@gmail.com>.
I think this is a question better suited for the mesos-dns or mesosphere
mailing list.
On Tue, Nov 17, 2015 at 11:40 AM, Rodrick Brown <ro...@orchard-app.com>
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.
>
>
> --
>
> [image: Orchard Platform] <http://www.orchardplatform.com/>
>
> Rodrick Brown / DevOPs Engineer
> +1 917 445 6839 / rodrick@orchardplatform.com
> <ch...@orchardplatform.com>
>
> Orchard Platform
> 101 5th Avenue, 4th Floor, New York, NY 10003
> 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.
>
Re: resolving hosts with mesos-dns not working with "/" in the
appid
Posted by Rad Gruchalski <ra...@gruchalski.com>.
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.