Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
faaf306a
Commit
faaf306a
authored
Jan 14, 2018
by
Ville Skyttä
Committed by
Simon Kelley
Jan 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes.
parent
c7e6aea8
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
26 additions
and
26 deletions
+26
-26
CHANGELOG
CHANGELOG
+2
-2
CHANGELOG.archive
CHANGELOG.archive
+3
-3
FAQ
FAQ
+3
-3
contrib/mactable/macscript
contrib/mactable/macscript
+1
-1
debian/changelog
debian/changelog
+1
-1
dnsmasq.conf.example
dnsmasq.conf.example
+1
-1
man/dnsmasq.8
man/dnsmasq.8
+5
-5
setup.html
setup.html
+1
-1
src/dnssec.c
src/dnssec.c
+1
-1
src/forward.c
src/forward.c
+1
-1
src/inotify.c
src/inotify.c
+1
-1
src/radv.c
src/radv.c
+1
-1
src/rfc2131.c
src/rfc2131.c
+1
-1
src/rfc3315.c
src/rfc3315.c
+2
-2
src/rrfilter.c
src/rrfilter.c
+2
-2
No files found.
CHANGELOG
View file @
faaf306a
...
@@ -7,7 +7,7 @@ version 2.79
...
@@ -7,7 +7,7 @@ version 2.79
Thanks to Beniamino Galvani for the patch.
Thanks to Beniamino Galvani for the patch.
Always return a SERVFAIL answer to DNS queries without the
Always return a SERVFAIL answer to DNS queries without the
recu
sion desired bit set, UNLESS acting as a
authoritative
recu
rsion desired bit set, UNLESS acting as an
authoritative
DNS server. This avoids a potential route to cache snooping.
DNS server. This avoids a potential route to cache snooping.
Add support for Ed25519 signatures in DNSSEC validation.
Add support for Ed25519 signatures in DNSSEC validation.
...
@@ -1548,7 +1548,7 @@ version 2.56
...
@@ -1548,7 +1548,7 @@ version 2.56
By default, setting an IPv4 address for a domain but not
By default, setting an IPv4 address for a domain but not
an IPv6 address causes dnsmasq to return
an IPv6 address causes dnsmasq to return
a
n
NODATA reply for IPv6 (or vice-versa). So
a NODATA reply for IPv6 (or vice-versa). So
--address=/google.com/1.2.3.4 stops IPv6 queries for
--address=/google.com/1.2.3.4 stops IPv6 queries for
*google.com from being forwarded. Make it possible to
*google.com from being forwarded. Make it possible to
override this behaviour by defining the semantics if the
override this behaviour by defining the semantics if the
...
...
CHANGELOG.archive
View file @
faaf306a
...
@@ -1010,7 +1010,7 @@ release 2.9
...
@@ -1010,7 +1010,7 @@ release 2.9
but to the address of another interface were ignored
but to the address of another interface were ignored
unless the loopback interface was explicitly configured.
unless the loopback interface was explicitly configured.
2) on OpenBSD failure to configure one interface now
2) on OpenBSD failure to configure one interface now
causes a fatal error on startup rather than a
n
huge
causes a fatal error on startup rather than a huge
stream of log messages. Thanks to Erik Jan Tromp for
stream of log messages. Thanks to Erik Jan Tromp for
finding that bug.
finding that bug.
...
@@ -2067,7 +2067,7 @@ version 2.36
...
@@ -2067,7 +2067,7 @@ version 2.36
kernel. Thanks to Philip Wall for the bug report.
kernel. Thanks to Philip Wall for the bug report.
Added --dhcp-bridge option, but only to the FreeBSD
Added --dhcp-bridge option, but only to the FreeBSD
build. This fixes an oddity with a
a
particular bridged
build. This fixes an oddity with a particular bridged
network configuration on FreeBSD. Thanks to Luigi Rizzo
network configuration on FreeBSD. Thanks to Luigi Rizzo
for the patch.
for the patch.
...
@@ -2273,7 +2273,7 @@ version 2.40
...
@@ -2273,7 +2273,7 @@ version 2.40
this.
this.
Use client-id as hash-seed for DHCP address allocation
Use client-id as hash-seed for DHCP address allocation
with Firewire and InfiniBand, as these don't supply a
n
MAC
with Firewire and InfiniBand, as these don't supply a MAC
address.
address.
Tweaked TFTP file-open code to make it behave sensibly
Tweaked TFTP file-open code to make it behave sensibly
...
...
FAQ
View file @
faaf306a
...
@@ -9,7 +9,7 @@ A: The high ports that dnsmasq opens are for replies from the upstream
...
@@ -9,7 +9,7 @@ A: The high ports that dnsmasq opens are for replies from the upstream
from
port
53
the
replies
would
be
_to_
port
53
and
get
blocked
.
from
port
53
the
replies
would
be
_to_
port
53
and
get
blocked
.
This
is
not
a
security
hole
since
dnsmasq
will
only
accept
replies
to
that
This
is
not
a
security
hole
since
dnsmasq
will
only
accept
replies
to
that
port
:
queries
are
dropped
.
The
replies
must
be
to
ou
standing
queries
port
:
queries
are
dropped
.
The
replies
must
be
to
out
standing
queries
which
dnsmasq
has
forwarded
,
otherwise
they
are
dropped
too
.
which
dnsmasq
has
forwarded
,
otherwise
they
are
dropped
too
.
Addendum
:
dnsmasq
now
has
the
option
"query-port"
(-
Q
),
which
allows
Addendum
:
dnsmasq
now
has
the
option
"query-port"
(-
Q
),
which
allows
...
@@ -297,7 +297,7 @@ A: Dnsmasq from v2.63 can operate in one of three different "networking
...
@@ -297,7 +297,7 @@ A: Dnsmasq from v2.63 can operate in one of three different "networking
by
dnsmasq
when
in
--
bind
-
interfaces
mode
.
In
wildcard
or
bind
-
dynamic
by
dnsmasq
when
in
--
bind
-
interfaces
mode
.
In
wildcard
or
bind
-
dynamic
mode
,
such
interfaces
are
handled
normally
.
mode
,
such
interfaces
are
handled
normally
.
A
--
interface
specification
for
a
non
-
existent
interface
is
a
fatal
A
n
--
interface
specification
for
a
non
-
existent
interface
is
a
fatal
error
at
start
-
up
when
in
--
bind
-
interfaces
mode
,
by
just
generates
a
error
at
start
-
up
when
in
--
bind
-
interfaces
mode
,
by
just
generates
a
warning
in
wildcard
or
bind
-
dynamic
mode
.
warning
in
wildcard
or
bind
-
dynamic
mode
.
...
@@ -320,7 +320,7 @@ A: Yes, new releases of dnsmasq are always announced through
...
@@ -320,7 +320,7 @@ A: Yes, new releases of dnsmasq are always announced through
Q
:
What
does
the
dhcp
-
authoritative
option
do
?
Q
:
What
does
the
dhcp
-
authoritative
option
do
?
A
:
The
DHCP
spec
says
that
when
a
DHCP
server
rec
ie
ves
a
renewal
request
A
:
The
DHCP
spec
says
that
when
a
DHCP
server
rec
ei
ves
a
renewal
request
from
a
client
it
has
no
knowledge
of
,
it
should
just
ignore
it
.
from
a
client
it
has
no
knowledge
of
,
it
should
just
ignore
it
.
This
is
because
it
's supported to have more than one DHCP server
This
is
because
it
's supported to have more than one DHCP server
on a network, and another DHCP server may be dealing with the client.
on a network, and another DHCP server may be dealing with the client.
...
...
contrib/mactable/macscript
View file @
faaf306a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
STATUS_FILE
=
"/tmp/dnsmasq-ip-mac.status"
STATUS_FILE
=
"/tmp/dnsmasq-ip-mac.status"
# Script for dnsmasq lease-change hook.
# Script for dnsmasq lease-change hook.
# Maintains the above file with a IP address/MAC address pairs,
# Maintains the above file with a
n
IP address/MAC address pairs,
# one lease per line. Works with IPv4 and IPv6 leases, file is
# one lease per line. Works with IPv4 and IPv6 leases, file is
# atomically updated, so no races for users of the data.
# atomically updated, so no races for users of the data.
...
...
debian/changelog
View file @
faaf306a
...
@@ -27,7 +27,7 @@ dnsmasq (2.77-1) unstable; urgency=low
...
@@ -27,7 +27,7 @@ dnsmasq (2.77-1) unstable; urgency=low
includes port=0 to disable DNS.
includes port=0 to disable DNS.
* Handle gratuitous format change in /usr/share/dns/root.ds
* Handle gratuitous format change in /usr/share/dns/root.ds
(closes: #858506) (closes: #860064)
(closes: #858506) (closes: #860064)
* Add lsb-base depend
a
ncy.
* Add lsb-base depend
e
ncy.
-- Simon Kelley <simon@thekelleys.org.uk> Tue, 11 Apr 2017 14:19:20 +0000
-- Simon Kelley <simon@thekelleys.org.uk> Tue, 11 Apr 2017 14:19:20 +0000
...
...
dnsmasq.conf.example
View file @
faaf306a
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
# server=10.1.2.3@eth1
# server=10.1.2.3@eth1
# and this sets the source (ie local) address used to talk to
# and this sets the source (ie local) address used to talk to
# 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that
# 10.1.2.3 to 192.168.1.1 port 55 (there must be a
n
interface with that
# IP on the machine, obviously).
# IP on the machine, obviously).
# server=10.1.2.3@192.168.1.1#55
# server=10.1.2.3@192.168.1.1#55
...
...
man/dnsmasq.8
View file @
faaf306a
...
@@ -241,7 +241,7 @@ configuration, indeed
...
@@ -241,7 +241,7 @@ configuration, indeed
.B --auth-server
.B --auth-server
will override these and provide a different DNS service on the
will override these and provide a different DNS service on the
specified interface. The <domain> is the "glue record". It should
specified interface. The <domain> is the "glue record". It should
resolve in the global DNS to a A and/or AAAA record which points to
resolve in the global DNS to a
n
A and/or AAAA record which points to
the address dnsmasq is listening on. When an interface is specified,
the address dnsmasq is listening on. When an interface is specified,
it may be qualified with "/4" or "/6" to specify only the IPv4 or IPv6
it may be qualified with "/4" or "/6" to specify only the IPv4 or IPv6
addresses associated with the interface.
addresses associated with the interface.
...
@@ -464,7 +464,7 @@ is a synonym for
...
@@ -464,7 +464,7 @@ is a synonym for
.B server
.B server
to make configuration files clearer in this case.
to make configuration files clearer in this case.
IPv6 addresses may include a %interface scope-id, eg
IPv6 addresses may include a
n
%interface scope-id, eg
fe80::202:a412:4512:7bbf%eth0.
fe80::202:a412:4512:7bbf%eth0.
The optional string after the @ character tells dnsmasq how to set the source of
The optional string after the @ character tells dnsmasq how to set the source of
...
@@ -597,7 +597,7 @@ hosts files), from DHCP, from --interface-name or from another
...
@@ -597,7 +597,7 @@ hosts files), from DHCP, from --interface-name or from another
.B --cname.
.B --cname.
If the target does not satisfy this
If the target does not satisfy this
criteria, the whole cname is ignored. The cname must be unique, but it
criteria, the whole cname is ignored. The cname must be unique, but it
is permiss
a
ble to have more than one cname pointing to the same target. Indeed
is permiss
i
ble to have more than one cname pointing to the same target. Indeed
it's possible to declare multiple cnames to a target in a single line, like so:
it's possible to declare multiple cnames to a target in a single line, like so:
.B --cname=cname1,cname2,target
.B --cname=cname1,cname2,target
...
@@ -655,7 +655,7 @@ given for --add-subnet applies to --add-mac too. An alternative encoding of the
...
@@ -655,7 +655,7 @@ given for --add-subnet applies to --add-mac too. An alternative encoding of the
MAC, as base64, is enabled by adding the "base64" parameter and a human-readable encoding of hex-and-colons is enabled by added the "text" parameter.
MAC, as base64, is enabled by adding the "base64" parameter and a human-readable encoding of hex-and-colons is enabled by added the "text" parameter.
.TP
.TP
.B --add-cpe-id=<string>
.B --add-cpe-id=<string>
Add a arbitrary identifying string to o DNS queries which are
Add a
n
arbitrary identifying string to o DNS queries which are
forwarded upstream.
forwarded upstream.
.TP
.TP
.B --add-subnet[[=[<IPv4 address>/]<IPv4 prefix length>][,[<IPv6 address>/]<IPv6 prefix length>]]
.B --add-subnet[[=[<IPv4 address>/]<IPv4 prefix length>][,[<IPv6 address>/]<IPv6 prefix length>]]
...
@@ -739,7 +739,7 @@ time typically requires use of NTP and therefore DNS, but validating DNS require
...
@@ -739,7 +739,7 @@ time typically requires use of NTP and therefore DNS, but validating DNS require
removes the time-window checks (but not other DNSSEC validation.) only until the dnsmasq process receives SIGHUP. The intention is
removes the time-window checks (but not other DNSSEC validation.) only until the dnsmasq process receives SIGHUP. The intention is
that dnsmasq should be started with this flag when the platform determines that reliable time is not currently available. As soon as
that dnsmasq should be started with this flag when the platform determines that reliable time is not currently available. As soon as
reliable time is established, a SIGHUP should be sent to dnsmasq, which enables time checking, and purges the cache of DNS records
reliable time is established, a SIGHUP should be sent to dnsmasq, which enables time checking, and purges the cache of DNS records
which have not been throughly checked.
which have not been th
o
roughly checked.
.TP
.TP
.B --dnssec-timestamp=<path>
.B --dnssec-timestamp=<path>
Enables an alternative way of checking the validity of the system time for DNSSEC (see --dnssec-no-timecheck). In this case, the
Enables an alternative way of checking the validity of the system time for DNSSEC (see --dnssec-no-timecheck). In this case, the
...
...
setup.html
View file @
faaf306a
...
@@ -125,7 +125,7 @@ address of its ethernet card. For the former to work, a machine needs to know it
...
@@ -125,7 +125,7 @@ address of its ethernet card. For the former to work, a machine needs to know it
requests a DHCP lease. For dhcpcd, the -h option specifies this. The
requests a DHCP lease. For dhcpcd, the -h option specifies this. The
names may be anything as far as DHCP is concerned, but dnsmasq adds
names may be anything as far as DHCP is concerned, but dnsmasq adds
some limitations. By default the names must no have a domain part, ie
some limitations. By default the names must no have a domain part, ie
they must just be a
alphanumeric name
, without any dots. This is a
they must just be a
lphanumeric names
, without any dots. This is a
security feature to stop a machine on your network telling DHCP that
security feature to stop a machine on your network telling DHCP that
its name is "www.microsoft.com" and thereby grabbing traffic which
its name is "www.microsoft.com" and thereby grabbing traffic which
shouldn't go to it. A domain part is only allowed by dnsmasq in DHCP machine names
shouldn't go to it. A domain part is only allowed by dnsmasq in DHCP machine names
...
...
src/dnssec.c
View file @
faaf306a
...
@@ -1789,7 +1789,7 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
...
@@ -1789,7 +1789,7 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
if
(
!
explore_rrset
(
header
,
plen
,
class1
,
type1
,
name
,
keyname
,
&
sigcnt
,
&
rrcnt
))
if
(
!
explore_rrset
(
header
,
plen
,
class1
,
type1
,
name
,
keyname
,
&
sigcnt
,
&
rrcnt
))
return
STAT_BOGUS
;
return
STAT_BOGUS
;
/* No signatures for RRset. We can be configured to assume this is OK and return a INSECURE result. */
/* No signatures for RRset. We can be configured to assume this is OK and return a
n
INSECURE result. */
if
(
sigcnt
==
0
)
if
(
sigcnt
==
0
)
{
{
if
(
check_unsigned
)
if
(
check_unsigned
)
...
...
src/forward.c
View file @
faaf306a
...
@@ -851,7 +851,7 @@ void reply_query(int fd, int family, time_t now)
...
@@ -851,7 +851,7 @@ void reply_query(int fd, int family, time_t now)
}
}
/* We tried resending to this server with a smaller maximum size and got an answer.
/* We tried resending to this server with a smaller maximum size and got an answer.
Make that permanent. To avoid reduxing the packet size for a
n
single dropped packet,
Make that permanent. To avoid reduxing the packet size for a single dropped packet,
only do this when we get a truncated answer, or one larger than the safe size. */
only do this when we get a truncated answer, or one larger than the safe size. */
if
(
server
&&
(
forward
->
flags
&
FREC_TEST_PKTSZ
)
&&
if
(
server
&&
(
forward
->
flags
&
FREC_TEST_PKTSZ
)
&&
((
header
->
hb3
&
HB3_TC
)
||
n
>=
SAFE_PKTSZ
))
((
header
->
hb3
&
HB3_TC
)
||
n
>=
SAFE_PKTSZ
))
...
...
src/inotify.c
View file @
faaf306a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include <sys/inotify.h>
#include <sys/inotify.h>
#include <sys/param.h>
/* For MAXSYMLINKS */
#include <sys/param.h>
/* For MAXSYMLINKS */
/* the strategy is to set a inotify on the directories containing
/* the strategy is to set a
n
inotify on the directories containing
resolv files, for any files in the directory which are close-write
resolv files, for any files in the directory which are close-write
or moved into the directory.
or moved into the directory.
...
...
src/radv.c
View file @
faaf306a
...
@@ -407,7 +407,7 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad
...
@@ -407,7 +407,7 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad
if
(
ra_param
)
if
(
ra_param
)
mtu
=
ra_param
->
mtu
;
mtu
=
ra_param
->
mtu
;
#ifdef HAVE_LINUX_NETWORK
#ifdef HAVE_LINUX_NETWORK
/* Note that IPv6 MTU is not nec
c
essarily the same as the IPv4 MTU
/* Note that IPv6 MTU is not necessarily the same as the IPv4 MTU
available from SIOCGIFMTU */
available from SIOCGIFMTU */
if
(
mtu
==
0
)
if
(
mtu
==
0
)
{
{
...
...
src/rfc2131.c
View file @
faaf306a
...
@@ -2284,7 +2284,7 @@ static void do_options(struct dhcp_context *context,
...
@@ -2284,7 +2284,7 @@ static void do_options(struct dhcp_context *context,
/* See if we can send the boot stuff as options.
/* See if we can send the boot stuff as options.
To do this we need a requested option list, BOOTP
To do this we need a requested option list, BOOTP
and very old DHCP clients won't have this, we also
and very old DHCP clients won't have this, we also
provide a
n
manual option to disable it.
provide a manual option to disable it.
Some PXE ROMs have bugs (surprise!) and need zero-terminated
Some PXE ROMs have bugs (surprise!) and need zero-terminated
names, so we always send those. */
names, so we always send those. */
if
((
boot
=
find_boot
(
tagif
)))
if
((
boot
=
find_boot
(
tagif
)))
...
...
src/rfc3315.c
View file @
faaf306a
...
@@ -882,7 +882,7 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
...
@@ -882,7 +882,7 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
if
(
!
ia_option
)
if
(
!
ia_option
)
{
{
/* If we get a request with a IA_*A without addresses, treat it exactly like
/* If we get a request with a
n
IA_*A without addresses, treat it exactly like
a SOLICT with rapid commit set. */
a SOLICT with rapid commit set. */
save_counter
(
start
);
save_counter
(
start
);
goto
request_no_address
;
goto
request_no_address
;
...
@@ -1625,7 +1625,7 @@ static void end_ia(int t1cntr, unsigned int min_time, int do_fuzz)
...
@@ -1625,7 +1625,7 @@ static void end_ia(int t1cntr, unsigned int min_time, int do_fuzz)
{
{
if
(
t1cntr
!=
0
)
if
(
t1cntr
!=
0
)
{
{
/* go back an fill in fields in IA_NA option */
/* go back an
d
fill in fields in IA_NA option */
int
sav
=
save_counter
(
t1cntr
);
int
sav
=
save_counter
(
t1cntr
);
unsigned
int
t1
,
t2
,
fuzz
=
0
;
unsigned
int
t1
,
t2
,
fuzz
=
0
;
...
...
src/rrfilter.c
View file @
faaf306a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
/* Code to safely remove RRs from a
n
DNS answer */
/* Code to safely remove RRs from a DNS answer */
#include "dnsmasq.h"
#include "dnsmasq.h"
...
@@ -247,7 +247,7 @@ size_t rrfilter(struct dns_header *header, size_t plen, int mode)
...
@@ -247,7 +247,7 @@ size_t rrfilter(struct dns_header *header, size_t plen, int mode)
check_rrs
(
p
,
header
,
plen
,
1
,
rrs
,
rr_found
);
check_rrs
(
p
,
header
,
plen
,
1
,
rrs
,
rr_found
);
/*
Fou
th pass, elide records */
/*
Four
th pass, elide records */
for
(
p
=
rrs
[
0
],
i
=
1
;
i
<
rr_found
;
i
+=
2
)
for
(
p
=
rrs
[
0
],
i
=
1
;
i
<
rr_found
;
i
+=
2
)
{
{
unsigned
char
*
start
=
rrs
[
i
];
unsigned
char
*
start
=
rrs
[
i
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment