<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Those name can be checked by idn2 tool even without resolving
      them.</p>
    <p>idn2 -d adrian---egn.000webhostapp.com.</p>
    <p>does not report an error, so this host should work in dnsmasq.</p>
    <p>But:</p>
    <p>idn2 -- -h.example.org</p>
    <p>idn2: toAscii: string start/ends with forbidden hyphen</p>
    <p>I think we may even straight refuse those invalid names on
      arrival and return just status: REFUSED as reply. Maybe with a
      possibility to disable such check.<br>
    </p>
    <div class="moz-cite-prefix">On 4/23/22 20:26, Dan Schaper via
      Dnsmasq-discuss wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b9d5ede9-05bf-f131-fdb0-e8a597b2b76a@pi-hole.net">
      The domain names in the second screenshot are IDNs, conversion of
      unicode to ascii. See <a class="moz-txt-link-freetext"
href="https://en.wikipedia.org/wiki/Internationalized_domain_name#Example_of_IDNA_encoding"
        moz-do-not-send="true">https://en.wikipedia.org/wiki/Internationalized_domain_name#Example_of_IDNA_encoding</a>
      for more on that.<br>
      The ones in the first screenshot that generate errors also appear
      to be valid. <br>
      <br>
      Running 0p-1pvdwjev-qele.exactag.com through <a
        class="moz-txt-link-freetext"
        href="https://dns.google/query?name=0p-1pvdwjev-qele.exactag.com"
        moz-do-not-send="true">https://dns.google/query?name=0p-1pvdwjev-qele.exactag.com</a>
      and <a class="moz-txt-link-freetext"
        href="http://sqa.fyicenter.com/1000207_Domain_Name_Validator.html"
        moz-do-not-send="true">http://sqa.fyicenter.com/1000207_Domain_Name_Validator.html</a>
      both show that domain as valid and Google resolves it to an  IP
      address. Checking to see if the error is from line 2 that rolls
      over to line 3 shows valid again <a class="moz-txt-link-freetext"
href="https://dns.google/query?name=adrian---egn.000webhostapp.com"
        moz-do-not-send="true">https://dns.google/query?name=adrian---egn.000webhostapp.com</a>.<br>
      <br>
      The first listed domain name zzz.eric-prautsch.com is very valid.
      Just like the single hyphen in my domain name. <br>
      <br>
      Let me know if there is a question on that list, DeveloperDan is a
      good friend of ours at Pi-hole.<br>
      <br>
      Best,<br>
      Dan<br>
      <br>
      <span>mito mito wrote on 4/23/2022 4:14 AM:</span><br>
      <blockquote type="cite"
cite="mid:CAPfEevQQbnZuDHYYBhEJ8Uej=1jYx1=M9Y8OwU3_yBmjn+XdFg@mail.gmail.com">
        <div dir="ltr"><br>
          <div class="gmail_quote">
            <div dir="ltr">
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">Hello Friends,<br>
                </div>
                <div dir="ltr">
                  <div><br>
                  </div>
                  <div><span lang="en"><span><span>I would appreciate
                          your help on this problem.</span></span></span><br>
                  </div>
                  <div><br>
                  </div>
                  <div><span lang="en"><span><span>I have been using
                          dnsmasq for a couple of years as an home
                          ad/track blocker and in the latest update
                          available for debian bullseye <b>dnsmasq-base/stable,now
                            2.85-1 armhf</b>
                          <b>dnsmasq/stable, now 2.85-1 all</b>
                          I have experienced a strange case that occurs
                          with certain combinations of names with a
                          mid-hyphen, an error occurs but not in all
                          cases.</span></span></span></div>
                  <div><span lang="en"><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span><span>From this list </span></span></span></div>
                  <div><span lang="en"><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span><span>For example
                          names with double or triple hyphens
                          names with hyphen and dot </span></span></span></div>
                  <div><img src="cid:part1.EpW17KBk.MbmAR5s0@redhat.com"
                      alt="Captura de pantalla de 2022-04-23
                      13-02-41.png" name="image.png" class=""
                      width="562" height="227"><br>
                  </div>
                  <div><span lang="en"><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span><span>In this case the
                          error appears on line 3, if I comment or
                          remove one of the dashes the error appears on
                          line 4 and so on</span></span></span></div>
                  <div><span lang="en"><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span><span>However in this case
                          there are no errors </span></span></span></div>
                  <div><img src="cid:part2.sCESoXNJ.rO38u0TD@redhat.com"
                      alt="Captura de pantalla de 2022-04-23
                      13-06-31.png" name="image.png" class=""
                      width="562" height="207"><br>
                  </div>
                  <div><span lang="en"><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span lang="en"><span><span>These
                            are lists obtained from
                            <a
href="https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt"
                              target="_blank" moz-do-not-send="true"
                              class="moz-txt-link-freetext">https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt</a></span></span></span><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span><span><br>
                        </span></span></span></div>
                  <div><span lang="en"><span><span>Thank you</span></span></span></div>
                  <div><span lang="en"><span><span>Greetings</span></span></span></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" moz-do-not-send="true">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" moz-do-not-send="true">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Petr Menšík
Software Engineer
Red Hat, <a class="moz-txt-link-freetext" href="http://www.redhat.com/">http://www.redhat.com/</a>
email: <a class="moz-txt-link-abbreviated" href="mailto:pemensik@redhat.com">pemensik@redhat.com</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
  </body>
</html>