dnsmasq-config.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. diff -Nru dnsmasq-2.84.orig/dnsmasq.conf.example dnsmasq-2.84/dnsmasq.conf.example
  2. --- dnsmasq-2.84.orig/dnsmasq.conf.example 2021-01-27 10:45:11.611244801 +0100
  3. +++ dnsmasq-2.84/dnsmasq.conf.example 2021-01-27 10:45:32.883980677 +0100
  4. @@ -22,7 +22,7 @@
  5. # Uncomment these to enable DNSSEC validation and caching:
  6. # (Requires dnsmasq to be built with DNSSEC option.)
  7. -#conf-file=%%PREFIX%%/share/dnsmasq/trust-anchors.conf
  8. +#conf-file=/usr/share/dnsmasq/trust-anchors.conf
  9. #dnssec
  10. # Replies which are not DNSSEC signed may be legitimate, because the domain
  11. @@ -96,8 +96,8 @@
  12. # If you want dnsmasq to change uid and gid to something other
  13. # than the default, edit the following lines.
  14. -#user=
  15. -#group=
  16. +#user=nobody
  17. +#group=nobody
  18. # If you want dnsmasq to listen for DHCP and DNS requests only on
  19. # specified interfaces (and the loopback) give the name of the
  20. @@ -535,7 +535,7 @@
  21. # The DHCP server needs somewhere on disk to keep its lease database.
  22. # This defaults to a sane location, but if you want to change it, use
  23. # the line below.
  24. -#dhcp-leasefile=/var/lib/misc/dnsmasq.leases
  25. +#dhcp-leasefile=/var/lib/dhcp/dnsmasq.leases
  26. # Set the DHCP server to authoritative mode. In this mode it will barge in
  27. # and take over the lease for any client which broadcasts on the network,
  28. diff -Nru dnsmasq-2.84.orig/src/config.h dnsmasq-2.84/src/config.h
  29. --- dnsmasq-2.84.orig/src/config.h 2021-01-27 10:45:11.614578042 +0100
  30. +++ dnsmasq-2.84/src/config.h 2021-01-27 10:45:32.883980677 +0100
  31. @@ -46,7 +46,7 @@
  32. #define DEFLEASE 3600 /* default DHCPv4 lease time, one hour */
  33. #define DEFLEASE6 (3600*24) /* default lease time for DHCPv6. One day. */
  34. #define CHUSER "nobody"
  35. -#define CHGRP "dip"
  36. +#define CHGRP "nobody"
  37. #define TFTP_MAX_CONNECTIONS 50 /* max simultaneous connections */
  38. #define LOG_MAX 5 /* log-queue length */
  39. #define RANDFILE "/dev/urandom"
  40. @@ -204,7 +204,7 @@
  41. # elif defined(__ANDROID__)
  42. # define LEASEFILE "/data/misc/dhcp/dnsmasq.leases"
  43. # else
  44. -# define LEASEFILE "/var/lib/misc/dnsmasq.leases"
  45. +# define LEASEFILE "/var/lib/dhcp/dnsmasq.leases"
  46. # endif
  47. #endif