1. 12 May, 2018 3 commits
    • Simon Kelley's avatar
    • Maarten de Vries's avatar
      Do unsolicited RAs for interfaces which appear after dnsmasq startup. · 0a496f05
      Maarten de Vries authored
      I noticed that dnsmasq often wasn't sending any unsolicited RAs for me.
      
      This turned out to happen when the interface (a bridge interface) wasn't
      created yet at the time dnsmasq started. When dnsmasq is started after
      the interface is created, it sends RAs as expected. I assume this also
      extends to other types of virtual interfaces that are created after
      dnsmasq starts.
      
      Digging into the source, it seems to be caused by a missing call to
      ra_start_unsolicited for non-template contexts in construct_worker from
      src/dhcp6.c. The attached patch adds that call, but only if the
      interface index or address changed to prevent doing fast RAs for no reason.
      
      I tested it on my own server and it appears to work as expected. When
      the interface is created and configured, dnsmasq does fast RAs for a
      while and then settles into slow RAs.
      0a496f05
    • Simon Kelley's avatar
      Fix logging in previous. · e27825b0
      Simon Kelley authored
      e27825b0
  2. 11 May, 2018 3 commits
  3. 09 May, 2018 1 commit
  4. 05 May, 2018 1 commit
  5. 04 May, 2018 2 commits
  6. 16 Apr, 2018 1 commit
  7. 15 Apr, 2018 1 commit
  8. 12 Apr, 2018 1 commit
  9. 11 Apr, 2018 2 commits
    • Simon Kelley's avatar
      Fix DNS server fd garbage collection. · 4441cf76
      Simon Kelley authored
      If we're talking to upstream servers from a fixed port, specified by query-port
      we create the fds to do this once, before dropping root, so that ports <1024 can be used.
      
      But we call check_servers() before reading /etc/resolv.conf, so if the only servers
      are in resolv.conf, at that point there will be no servers, and the fds get garbage
      collected away, only to be recreated (but without root) after we read /etc/resolv.conf
      
      Make pre-allocated server fds immortal, to avoid this problem.
      4441cf76
    • Simon Kelley's avatar
      Set V6ONLY on DNS upstream socket. · e83915d1
      Simon Kelley authored
      If query-port is set, we create sockets bound to the wildcard address and the query port for
      IPv4 and IPv6, but the IPv6 one fails, because is covers IPv4 as well, and an IPv4 socket
      already exists (it gets created first). Set V6ONLY to avoid this.
      e83915d1
  10. 08 Apr, 2018 1 commit
  11. 26 Mar, 2018 1 commit
  12. 24 Mar, 2018 2 commits
  13. 19 Mar, 2018 1 commit
  14. 18 Mar, 2018 1 commit
  15. 11 Mar, 2018 3 commits
  16. 09 Mar, 2018 1 commit
  17. 07 Mar, 2018 2 commits
    • Petr Menšík's avatar
      Allow trailing dot in CNAME. · 56f06239
      Petr Menšík authored
      I got reported bug in Fedora [1], that cname is broken in new releases.
      At first I though this was false report, but there is still new
      regression in cname handling.
      
      Before, it accepted alias with trailing dot. Not it would accept only
      target, but not alias.
      
      cname=alias.,target
      
      is no longer valid. The issue is it will count size to skip after
      canonicalize. If that ignores trailing dot, next name would be "". And
      that is invalid and refused, dnsmasq refuses to start.
      
      I also think that any whitespace like tab should be possible after
      comma. So this fixes also 30858e3b.
      56f06239
    • Simon Kelley's avatar
      Fix nettle_hash() function to avoid ABI incompatibilities. · f3223fbf
      Simon Kelley authored
      The way of accessing the list of available hashes on nettle was
      vulnerable to breaking if the version of libnettle in use was
      different to the version dnsmasq was compiled against.
      Change to a new system if libnettle >= 3.4 is in use.
      Older versions if nettle are still OK, once 3.4 is reached,
      the ABi problem is fixed. Thanks to Petr Menšík for clues on this.
      f3223fbf
  18. 17 Feb, 2018 7 commits
  19. 15 Feb, 2018 5 commits
  20. 09 Feb, 2018 1 commit