<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div style="" data-md-original="<div
class="moz-cite-prefix">On 09/24/2013 01:05 PM, Klaus
Darilion wrote:<br></div><blockquote
cite="mid:524171FE.6010604@pernau.at"
type="cite">Hi! I managed to create DNS measurements
via the REST API, but fail to set the DO and protocol:TCP option.
According to the documentation
(https://atlas.ripe.net/doc/measurement-creation-api/) the
relevant properties are use_EDNS0 and use_tcp. So I tried it with
<br></blockquote><br>This was a mistake in our
API (my bad). There was some confusion as to what should
be used (`use_EDNS0`, `use_DO`, `do`, etc.) and it caused some
unpredictability in the code. I have now gone through
and (hopefully) changed everything to use `do` and nothing
else. I've also updated the API
doc.<br><br>So, for the record, the request that
started this thread should look like
this:<br><br> {
<br>
"definitions": [
<br>
{
<br>
"is_public": true,
<br>
"is_oneoff" : false,
<br>
"target": "194.0.25.13",
<br>
"description":
"a.dns.nic.versicherung_IP4_TCP_noDO",
<br>
"type": "dns",
<br>
"af": 4,
<br>
"interval": 300,
<br>
"use_TCP": true,
<br>
"use_probe_resolver": false,
<br>
"use_NSID": true,
<br>
"query_class": "IN",
<br>
"query_type": "SOA",
<br>
"query_argument": "versicherung",
<br>
"udp_payload_size": 1024,
<br>
"protocol": "TCP",
<br>
"do": true
<br>
}<br>
],<br>
...<br>
}<br><br>If there are questions, or if you think that
I've missed something, just let me know :-)<br><br>"
class="markdown-here-wrapper" id="markdown-here-wrapper-815487">
<p style="margin: 1.2em 0px ! important;">On 09/24/2013 01:05 PM,
Klaus Darilion wrote:</p>
<p style="margin: 1.2em 0px ! important;"></p>
<div class="markdown-here-exclude">
<p></p>
<blockquote cite="mid:524171FE.6010604@pernau.at" type="cite">Hi!
I managed to create DNS measurements via the REST API, but
fail to set the DO and protocol:TCP option. According to the
documentation
(<a class="moz-txt-link-freetext" href="https://atlas.ripe.net/doc/measurement-creation-api/">https://atlas.ripe.net/doc/measurement-creation-api/</a>) the
relevant properties are use_EDNS0 and use_tcp. So I tried it
with
<br>
</blockquote>
<p></p>
</div>
<p style="margin: 1.2em 0px ! important;"></p>
<p style="margin: 1.2em 0px ! important;">This was a mistake in
our API (my bad). There was some confusion as to what should be
used (<code style="font-size: 0.85em; font-family:
Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em;
padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid
rgb(234, 234, 234); background-color: rgb(248, 248, 248);
border-radius: 3px 3px 3px 3px; display: inline;">use_EDNS0</code>,
<code style="font-size: 0.85em; font-family:
Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em;
padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid
rgb(234, 234, 234); background-color: rgb(248, 248, 248);
border-radius: 3px 3px 3px 3px; display: inline;">use_DO</code>,
<code style="font-size: 0.85em; font-family:
Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em;
padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid
rgb(234, 234, 234); background-color: rgb(248, 248, 248);
border-radius: 3px 3px 3px 3px; display: inline;">do</code>,
etc.) and it caused some unpredictability in the code. I have
now gone through and (hopefully) changed everything to use <code
style="font-size: 0.85em; font-family:
Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em;
padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid
rgb(234, 234, 234); background-color: rgb(248, 248, 248);
border-radius: 3px 3px 3px 3px; display: inline;">do</code>
and nothing else. I've also updated the API doc.</p>
<p style="margin: 1.2em 0px ! important;">So, for the record, the
request that started this thread should look like this:</p>
<pre style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;font-size: 1em; line-height: 1.2em;margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px 3px 3px 3px; display: inline;white-space: pre; overflow: auto; border-radius: 3px 3px 3px 3px; border: 1px solid rgb(204, 204, 204); padding: 0.5em 0.7em;display: block; padding: 0.5em; color: rgb(51, 51, 51); background: none repeat scroll 0% 0% rgb(248, 248, 255);">{
"definitions": [
{
"is_public": true,
"is_oneoff" : false,
"target": "194.0.25.13",
"description": "a.dns.nic.versicherung_IP4_TCP_noDO",
"type": "dns",
"af": 4,
"interval": 300,
"use_TCP": true,
"use_probe_resolver": false,
"use_NSID": true,
"query_class": "IN",
"query_type": "SOA",
"query_argument": "versicherung",
"udp_payload_size": 1024,
"protocol": "TCP",
"do": true
}
],
...
}</code></pre>
<p style="margin: 1.2em 0px ! important;">If there are questions,
or if you think that I've missed something, just let me know :-)</p>
</div>
</body>
</html>