<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello guys,<br>
    <br>
    I have my own domain and have a Hurricane Electric ipv6 block.<br>
    <br>
    I get working reverse-lookups for my hosts that dnsmasq knows about.
    DHCP, RA, hard-coded etc.<br>
    <br>
    However I want non-existing hosts to get a generated hostname using
    the synth-domain option.<br>
    The reason is that I want to have working hostnames for the
    temporary IPv6-addresses my hosts uses.<br>
    <br>
    I'm using this config:<br>
    synth-domain=hartmark.se,2001:470:28:6ac::/64,dynamic-<br>
    <br>
    And a lookup on a IPv6-address using localhost gives me this
    response:<br>
    <br>
    ======================================<br>
    $ dig -x 2001:470:28:6ac:a634:d9ff:fe7e:6c5a<br>
    <br>
    ; <<>> DiG 9.10.3-P4-Ubuntu <<>> -x
    2001:470:28:6ac:a634:d9ff:fe7e:6c5a<br>
    ;; global options: +cmd<br>
    ;; Got answer:<br>
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:
    27613<br>
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0,
    ADDITIONAL: 1<br>
    <br>
    ;; OPT PSEUDOSECTION:<br>
    ; EDNS: version: 0, flags:; udp: 4096<br>
    ;; QUESTION SECTION:<br>
;a.5.c.6.e.7.e.f.f.f.9.d.4.3.6.a.c.a.6.0.8.2.0.0.0.7.4.0.1.0.0.2.ip6.arpa.
    IN PTR<br>
    <br>
    ;; ANSWER SECTION:<br>
a.5.c.6.e.7.e.f.f.f.9.d.4.3.6.a.c.a.6.0.8.2.0.0.0.7.4.0.1.0.0.2.ip6.arpa.
    300 IN PTR dynamic-2001-470-28-6ac-a634-d9ff-fe7e-6c5a.hartmark.se.<br>
    <br>
    ;; Query time: 0 msec<br>
    ;; SERVER: 127.0.0.1#53(127.0.0.1)<br>
    ;; WHEN: Sun Mar 04 23:05:20 CET 2018<br>
    ;; MSG SIZE  rcvd: 170<br>
    ======================================<br>
    <br>
    As you can see I get the expected dynamic-xxx.hartmark.se hostname.<br>
    <br>
    And if I ask on my dns-server's IPv4 address I get same result,
    however I I ask on my IPv6-address I get this result:<br>
    ======================================<br>
    dig -x 2001:470:28:6ac:a634:d9ff:fe7e:6c5a @ns1.hartmark.se<br>
    <br>
    ; <<>> DiG 9.10.3-P4-Ubuntu <<>> -x
    2001:470:28:6ac:a634:d9ff:fe7e:6c5a @ns1.hartmark.se<br>
    ;; global options: +cmd<br>
    ;; Got answer:<br>
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id:
    58272<br>
    ;; flags: qr aa rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1,
    ADDITIONAL: 1<br>
    ;; WARNING: recursion requested but not available<br>
    <br>
    ;; OPT PSEUDOSECTION:<br>
    ; EDNS: version: 0, flags:; udp: 4096<br>
    ;; QUESTION SECTION:<br>
;a.5.c.6.e.7.e.f.f.f.9.d.4.3.6.a.c.a.6.0.8.2.0.0.0.7.4.0.1.0.0.2.ip6.arpa.
    IN PTR<br>
    <br>
    ;; AUTHORITY SECTION:<br>
    c.a.6.0.8.2.0.0.0.7.4.0.1.0.0.2.ip6.arpa. 300 IN SOA
    ns1.hartmark.se. hostmaster.hartmark.se. 1520127368 1200 180 1209600
    300<br>
    <br>
    ;; Query time: 0 msec<br>
    ;; SERVER: 2001:470:28:6ac::2#53(2001:470:28:6ac::2)<br>
    ;; WHEN: Sun Mar 04 23:14:50 CET 2018<br>
    ;; MSG SIZE  rcvd: 214<br>
    ======================================<br>
    <br>
    I'm no DNS-ninja but it seems the IPv6 response is NXDOMAIN and the
    IPv4 response have NOERROR. The curious thing is that they are both
    flagged with aa (<span class="st"><em>AA</em> = Authoritative
      Answer).<br>
      <br>
      dnsmasq for IPv4 and IPv6 is the same process on the machine:<br>
      tcp        0      0 0.0.0.0:53             
      0.0.0.0:*               LISTEN      18236/dnsmasq<br>
      tcp6       0      0 :::53                  
      :::*                    LISTEN      18236/dnsmasq<br>
      udp        0      0 0.0.0.0:53             
      0.0.0.0:*                           18236/dnsmasq<br>
      udp6       0      0 :::53                  
      :::*                                18236/dnsmasq<br>
      <br>
      Is there anything I have missed?<br>
      ns1.hartmark.se is the delegated authority for the /64 from
      Hurricane Electric.<br>
      <br>
      $ dnsmasq -version<br>
      Dnsmasq version 2.78  Copyright (c) 2000-2017 Simon Kelley<br>
      Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6
      no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify<br>
      <br>
      Running on a ubuntu 17.10.<br>
      <br>
      BR,<br>
      / Harre<br>
    </span>
  </body>
</html>