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
43517fca
Commit
43517fca
authored
Feb 19, 2017
by
klemens
Committed by
Simon Kelley
Feb 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes.
parent
88a77a78
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
25 deletions
+25
-25
CHANGELOG
CHANGELOG
+8
-8
CHANGELOG.archive
CHANGELOG.archive
+7
-7
FAQ
FAQ
+1
-1
contrib/lease-tools/dhcp_release6.c
contrib/lease-tools/dhcp_release6.c
+1
-1
man/dnsmasq.8
man/dnsmasq.8
+2
-2
src/config.h
src/config.h
+1
-1
src/dhcp.c
src/dhcp.c
+1
-1
src/forward.c
src/forward.c
+1
-1
src/inotify.c
src/inotify.c
+1
-1
src/rfc1035.c
src/rfc1035.c
+2
-2
No files found.
CHANGELOG
View file @
43517fca
...
@@ -51,7 +51,7 @@ version 2.77
...
@@ -51,7 +51,7 @@ version 2.77
Add DNSMASQ_REQUESTED_OPTIONS environment variable to the
Add DNSMASQ_REQUESTED_OPTIONS environment variable to the
lease-change script. Thanks to ZHAO Yu for the patch.
lease-change script. Thanks to ZHAO Yu for the patch.
Fix foobar in rrfilter code, that could cause m
is
formed
Fix foobar in rrfilter code, that could cause m
al
formed
replies, especially when DNSSEC validation on, and
replies, especially when DNSSEC validation on, and
the upstream server returns answer with the RRs in a
the upstream server returns answer with the RRs in a
particular order. The only DNS server known to tickle
particular order. The only DNS server known to tickle
...
@@ -65,7 +65,7 @@ version 2.77
...
@@ -65,7 +65,7 @@ version 2.77
Thanks to Kevin Darbyshire-Bryant and Eric Luehrsen
Thanks to Kevin Darbyshire-Bryant and Eric Luehrsen
for pushing this.
for pushing this.
Improve connection handling when talking to TCP upsteam
Improve connection handling when talking to TCP upst
r
eam
servers. Specifically, be prepared to open a new TCP
servers. Specifically, be prepared to open a new TCP
connection when we want to make multiple queries
connection when we want to make multiple queries
but the upstream server accepts fewer queries per connection.
but the upstream server accepts fewer queries per connection.
...
@@ -468,7 +468,7 @@ version 2.69
...
@@ -468,7 +468,7 @@ version 2.69
conf-file=/path/to/trust-anchors.conf
conf-file=/path/to/trust-anchors.conf
dnssec
dnssec
to your config is all thats needed to get things
to your config is all that
'
s needed to get things
working. The upstream nameservers have to be DNSSEC-capable
working. The upstream nameservers have to be DNSSEC-capable
too, of course. Many ISP nameservers aren't, but the
too, of course. Many ISP nameservers aren't, but the
Google public nameservers (8.8.8.8 and 8.8.4.4) are.
Google public nameservers (8.8.8.8 and 8.8.4.4) are.
...
@@ -656,7 +656,7 @@ version 2.67
...
@@ -656,7 +656,7 @@ version 2.67
we can't use SO_BINDTODEVICE. Thanks to Natrio for the bug
we can't use SO_BINDTODEVICE. Thanks to Natrio for the bug
report.
report.
Increase timeout/number of retries in TFTP to accomodate
Increase timeout/number of retries in TFTP to accom
m
odate
AudioCodes Voice Gateways doing streaming writes to flash.
AudioCodes Voice Gateways doing streaming writes to flash.
Thanks to Damian Kaczkowski for spotting the problem.
Thanks to Damian Kaczkowski for spotting the problem.
...
@@ -924,7 +924,7 @@ version 2.63
...
@@ -924,7 +924,7 @@ version 2.63
still-born attempt to allow automatic isolated
still-born attempt to allow automatic isolated
configuration by libvirt, but have never (to my knowledge)
configuration by libvirt, but have never (to my knowledge)
been used, had very strange semantics, and have been
been used, had very strange semantics, and have been
super
c
eded by other mechanisms.
super
s
eded by other mechanisms.
Fixed bug logging filenames when duplicate dhcp-host
Fixed bug logging filenames when duplicate dhcp-host
addresses are found. Thanks to John Hanks for the patch.
addresses are found. Thanks to John Hanks for the patch.
...
@@ -957,7 +957,7 @@ version 2.63
...
@@ -957,7 +957,7 @@ version 2.63
version 2.62
version 2.62
Update German translation. Thanks to Conrad Kostecki.
Update German translation. Thanks to Conrad Kostecki.
Cope with router-solict packets wich don't have a valid
Cope with router-solict packets w
h
ich don't have a valid
source address. Thanks to Vladislav Grishenko for the patch.
source address. Thanks to Vladislav Grishenko for the patch.
Fixed bug which caused missing periodic router
Fixed bug which caused missing periodic router
...
@@ -1211,7 +1211,7 @@ version 2.58
...
@@ -1211,7 +1211,7 @@ version 2.58
Relax the need to supply a netmask in --dhcp-range for
Relax the need to supply a netmask in --dhcp-range for
networks which use a DHCP relay. Whilst this is still
networks which use a DHCP relay. Whilst this is still
desir
e
able, in the absence of a netmask dnsmasq will use
desirable, in the absence of a netmask dnsmasq will use
a default based on the class (A, B, or C) of the address.
a default based on the class (A, B, or C) of the address.
This should at least remove a cause of mysterious failure
This should at least remove a cause of mysterious failure
for people using RFC1918 addresses and relays.
for people using RFC1918 addresses and relays.
...
@@ -1325,7 +1325,7 @@ version 2.56
...
@@ -1325,7 +1325,7 @@ version 2.56
Add --add-mac option. This is to support currently
Add --add-mac option. This is to support currently
experimental DNS filtering facilities. Thanks to Benjamin
experimental DNS filtering facilities. Thanks to Benjamin
Petrin for the orignal patch.
Petrin for the orig
i
nal patch.
Fix bug which meant that tags were ignored in dhcp-range
Fix bug which meant that tags were ignored in dhcp-range
configuration specifying PXE-proxy service. Thanks to
configuration specifying PXE-proxy service. Thanks to
...
...
CHANGELOG.archive
View file @
43517fca
...
@@ -78,7 +78,7 @@ release 0.98 Some enhancements and bug-fixes.
...
@@ -78,7 +78,7 @@ release 0.98 Some enhancements and bug-fixes.
ids, to thwart DNS spoofers.
ids, to thwart DNS spoofers.
(7) Dnsmasq no longer forwards queries when the
(7) Dnsmasq no longer forwards queries when the
"recursion desired" bit is not set in the header.
"recursion desired" bit is not set in the header.
(8) Fixed getopt code to work on comp
li
ers with unsigned char.
(8) Fixed getopt code to work on comp
il
ers with unsigned char.
release 0.991 Added -b flag: when set causes dnsmasq to always answer
release 0.991 Added -b flag: when set causes dnsmasq to always answer
reverse queries on the RFC 1918 private IP space itself and
reverse queries on the RFC 1918 private IP space itself and
...
@@ -319,7 +319,7 @@ release 1.9 Fixes to rpm .spec files.
...
@@ -319,7 +319,7 @@ release 1.9 Fixes to rpm .spec files.
uClinux. Thanks to Matthew Natalier for uClinux stuff.
uClinux. Thanks to Matthew Natalier for uClinux stuff.
release 1.10 Log warnings if resolv.conf or dhcp.leases are not
release 1.10 Log warnings if resolv.conf or dhcp.leases are not
access
a
ble for any reason, as suggested by Hinrich Eilts.
access
i
ble for any reason, as suggested by Hinrich Eilts.
Fixed wrong address printing in error message about
Fixed wrong address printing in error message about
no interface with address.
no interface with address.
...
@@ -975,7 +975,7 @@ release 2.8
...
@@ -975,7 +975,7 @@ release 2.8
configuration. Specifically: (1) options are matched on
configuration. Specifically: (1) options are matched on
the netids from dhcp-range, dhcp-host, vendor class and
the netids from dhcp-range, dhcp-host, vendor class and
user class(es). Multiple net-ids are allowed and options
user class(es). Multiple net-ids are allowed and options
are searched on them all. (2) matches agains vendor class
are searched on them all. (2) matches agains
t
vendor class
and user class are now on a substring, if the given
and user class are now on a substring, if the given
string is a substring of the vendor/user class, then a
string is a substring of the vendor/user class, then a
match occurs. Thanks again to Richard Musil for prompting
match occurs. Thanks again to Richard Musil for prompting
...
@@ -1019,7 +1019,7 @@ release 2.9
...
@@ -1019,7 +1019,7 @@ release 2.9
broken. The new algorithm is to pick as before for the
broken. The new algorithm is to pick as before for the
first try, but if a query is retried, to send to all
first try, but if a query is retried, to send to all
available servers in parallel. The first one to reply
available servers in parallel. The first one to reply
then becomes prefered for the next query. This should
then becomes prefer
r
ed for the next query. This should
improve reliability without generating significant extra
improve reliability without generating significant extra
upstream load.
upstream load.
...
@@ -1229,7 +1229,7 @@ version 2.16
...
@@ -1229,7 +1229,7 @@ version 2.16
Set NONBLOCK on all listening sockets to workaround non-POSIX
Set NONBLOCK on all listening sockets to workaround non-POSIX
compliance in Linux 2.4 and 2.6. This fixes rare hangs which
compliance in Linux 2.4 and 2.6. This fixes rare hangs which
occured when corrupted packets were received. Thanks to
occur
r
ed when corrupted packets were received. Thanks to
Joris van Rantwijk for chasing that down.
Joris van Rantwijk for chasing that down.
Updated config.h for NetBSD. Thanks to Martin Lambers.
Updated config.h for NetBSD. Thanks to Martin Lambers.
...
@@ -1297,7 +1297,7 @@ version 2.18
...
@@ -1297,7 +1297,7 @@ version 2.18
interfaces with more than one IPv6 address. Thanks to
interfaces with more than one IPv6 address. Thanks to
Martin Pels for help with that.
Martin Pels for help with that.
Fix problems which occured when more than one dhcp-range
Fix problems which occur
r
ed when more than one dhcp-range
was specified in the same subnet: sometimes parameters
was specified in the same subnet: sometimes parameters
(lease time, network-id tag) from the wrong one would be
(lease time, network-id tag) from the wrong one would be
used. Thanks to Rory Campbell-Lange for the bug report.
used. Thanks to Rory Campbell-Lange for the bug report.
...
@@ -1740,7 +1740,7 @@ version 2.28
...
@@ -1740,7 +1740,7 @@ version 2.28
Fixed regression in netlink code under 2.2.x kernels which
Fixed regression in netlink code under 2.2.x kernels which
occurred in 2.27. Erik Jan Tromp is the vintage kernel fan
occurred in 2.27. Erik Jan Tromp is the vintage kernel fan
who found this. P.S. It looks like this "netlink bind:
who found this. P.S. It looks like this "netlink bind:
permission denied" problem occured in kernels at least as
permission denied" problem occur
r
ed in kernels at least as
late a 2.4.18. Good information from Alain Richoux.
late a 2.4.18. Good information from Alain Richoux.
Added a warning when it's impossible to give a host its
Added a warning when it's impossible to give a host its
...
...
FAQ
View file @
43517fca
...
@@ -156,7 +156,7 @@ A: [note: this was written in September 2003, things may well change.]
...
@@ -156,7 +156,7 @@ A: [note: this was written in September 2003, things may well change.]
If
you
get
"jlsdajkdalld.com"
does
not
exist
,
then
all
is
fine
,
if
If
you
get
"jlsdajkdalld.com"
does
not
exist
,
then
all
is
fine
,
if
host
returns
an
IP
address
,
then
the
DNS
is
broken
.
(
Try
a
few
host
returns
an
IP
address
,
then
the
DNS
is
broken
.
(
Try
a
few
different
unlikely
domains
,
just
in
case
you
picked
a
w
ie
rd
one
different
unlikely
domains
,
just
in
case
you
picked
a
w
ei
rd
one
which
really
_is_
registered
.)
which
really
_is_
registered
.)
Assuming
that
your
DNS
is
broken
,
and
you
want
to
fix
it
,
simply
Assuming
that
your
DNS
is
broken
,
and
you
want
to
fix
it
,
simply
...
...
contrib/lease-tools/dhcp_release6.c
View file @
43517fca
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
The iaid argument is numeric string and mandatory. Normally
The iaid argument is numeric string and mandatory. Normally
it can be found in leases file both on client and server.
it can be found in leases file both on client and server.
IP is an IPv6 adress to release
IP is an IPv6 ad
d
ress to release
If --dry-run is specified, dhcp_release6 just prints hexadecimal representation of
If --dry-run is specified, dhcp_release6 just prints hexadecimal representation of
packet to send to stdout and exits.
packet to send to stdout and exits.
...
...
man/dnsmasq.8
View file @
43517fca
...
@@ -1476,7 +1476,7 @@ DUID automatically when it is first needed. When given, this option
...
@@ -1476,7 +1476,7 @@ DUID automatically when it is first needed. When given, this option
provides dnsmasq the data required to create a DUID-EN type DUID. Note
provides dnsmasq the data required to create a DUID-EN type DUID. Note
that once set, the DUID is stored in the lease database, so to change between DUID-EN and
that once set, the DUID is stored in the lease database, so to change between DUID-EN and
automatically created DUIDs or vice-versa, the lease database must be
automatically created DUIDs or vice-versa, the lease database must be
re-intialised. The enterprise-id is assigned by IANA, and the uid is a
re-in
i
tialised. The enterprise-id is assigned by IANA, and the uid is a
string of hex octets unique to a particular device.
string of hex octets unique to a particular device.
.TP
.TP
.B \-6 --dhcp-script=<path>
.B \-6 --dhcp-script=<path>
...
@@ -1606,7 +1606,7 @@ the arrival of a new entry in the ARP or neighbour table, and "arp-del" indicate
...
@@ -1606,7 +1606,7 @@ the arrival of a new entry in the ARP or neighbour table, and "arp-del" indicate
.B --dhcp-luascript=<path>
.B --dhcp-luascript=<path>
Specify a script written in Lua, to be run when leases are created,
Specify a script written in Lua, to be run when leases are created,
destroyed or changed. To use this option, dnsmasq must be compiled
destroyed or changed. To use this option, dnsmasq must be compiled
with the correct support. The Lua interpreter is intialised once, when
with the correct support. The Lua interpreter is in
i
tialised once, when
dnsmasq starts, so that global variables persist between lease
dnsmasq starts, so that global variables persist between lease
events. The Lua code must define a
events. The Lua code must define a
.B lease
.B lease
...
...
src/config.h
View file @
43517fca
...
@@ -132,7 +132,7 @@ NO_SCRIPT
...
@@ -132,7 +132,7 @@ NO_SCRIPT
NO_LARGEFILE
NO_LARGEFILE
NO_AUTH
NO_AUTH
NO_INOTIFY
NO_INOTIFY
these are avilable to explicitly disable compile time options which would
these are av
a
ilable to explicitly disable compile time options which would
otherwise be enabled automatically (HAVE_IPV6, >2Gb file sizes) or
otherwise be enabled automatically (HAVE_IPV6, >2Gb file sizes) or
which are enabled by default in the distributed source tree. Building dnsmasq
which are enabled by default in the distributed source tree. Building dnsmasq
with something like "make COPTS=-DNO_SCRIPT" will do the trick.
with something like "make COPTS=-DNO_SCRIPT" will do the trick.
...
...
src/dhcp.c
View file @
43517fca
...
@@ -496,7 +496,7 @@ static int check_listen_addrs(struct in_addr local, int if_index, char *label,
...
@@ -496,7 +496,7 @@ static int check_listen_addrs(struct in_addr local, int if_index, char *label,
3) Fills in local (this host) and router (this host or relay) addresses.
3) Fills in local (this host) and router (this host or relay) addresses.
4) Links contexts which are valid for hosts directly connected to the arrival interface on ->current.
4) Links contexts which are valid for hosts directly connected to the arrival interface on ->current.
Note that the current chain may be super
c
eded later for configured hosts or those coming via gateways. */
Note that the current chain may be super
s
eded later for configured hosts or those coming via gateways. */
static
int
complete_context
(
struct
in_addr
local
,
int
if_index
,
char
*
label
,
static
int
complete_context
(
struct
in_addr
local
,
int
if_index
,
char
*
label
,
struct
in_addr
netmask
,
struct
in_addr
broadcast
,
void
*
vparam
)
struct
in_addr
netmask
,
struct
in_addr
broadcast
,
void
*
vparam
)
...
...
src/forward.c
View file @
43517fca
...
@@ -1328,7 +1328,7 @@ void receive_query(struct listener *listen, time_t now)
...
@@ -1328,7 +1328,7 @@ void receive_query(struct listener *listen, time_t now)
struct
irec
*
iface
;
struct
irec
*
iface
;
/* get the netmask of the interface which has the address we were sent to.
/* get the netmask of the interface which has the address we were sent to.
This is no nec
c
essarily the interface we arrived on. */
This is no necessarily the interface we arrived on. */
for
(
iface
=
daemon
->
interfaces
;
iface
;
iface
=
iface
->
next
)
for
(
iface
=
daemon
->
interfaces
;
iface
;
iface
=
iface
->
next
)
if
(
iface
->
addr
.
sa
.
sa_family
==
AF_INET
&&
if
(
iface
->
addr
.
sa
.
sa_family
==
AF_INET
&&
...
...
src/inotify.c
View file @
43517fca
...
@@ -104,7 +104,7 @@ void inotify_dnsmasq_init()
...
@@ -104,7 +104,7 @@ void inotify_dnsmasq_init()
strcpy
(
path
,
res
->
name
);
strcpy
(
path
,
res
->
name
);
/* Follow symlinks until we reach a non-symlink, or a non-exist
a
nt file. */
/* Follow symlinks until we reach a non-symlink, or a non-exist
e
nt file. */
while
((
new_path
=
my_readlink
(
path
)))
while
((
new_path
=
my_readlink
(
path
)))
{
{
if
(
links
--
==
0
)
if
(
links
--
==
0
)
...
...
src/rfc1035.c
View file @
43517fca
...
@@ -1184,7 +1184,7 @@ static unsigned long crec_ttl(struct crec *crecp, time_t now)
...
@@ -1184,7 +1184,7 @@ static unsigned long crec_ttl(struct crec *crecp, time_t now)
if
(
crecp
->
flags
&
F_IMMORTAL
)
if
(
crecp
->
flags
&
F_IMMORTAL
)
return
crecp
->
ttd
;
return
crecp
->
ttd
;
/* Return the Max TTL value if it is lower th
e
n the actual TTL */
/* Return the Max TTL value if it is lower th
a
n the actual TTL */
if
(
daemon
->
max_ttl
==
0
||
((
unsigned
)(
crecp
->
ttd
-
now
)
<
daemon
->
max_ttl
))
if
(
daemon
->
max_ttl
==
0
||
((
unsigned
)(
crecp
->
ttd
-
now
)
<
daemon
->
max_ttl
))
return
crecp
->
ttd
-
now
;
return
crecp
->
ttd
-
now
;
else
else
...
@@ -1520,7 +1520,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
...
@@ -1520,7 +1520,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
enumerate_interfaces
(
0
);
enumerate_interfaces
(
0
);
/* See if a putative address is on the network from which we rec
ie
ved
/* See if a putative address is on the network from which we rec
ei
ved
the query, is so we'll filter other answers. */
the query, is so we'll filter other answers. */
if
(
local_addr
.
s_addr
!=
0
&&
option_bool
(
OPT_LOCALISE
)
&&
type
==
T_A
)
if
(
local_addr
.
s_addr
!=
0
&&
option_bool
(
OPT_LOCALISE
)
&&
type
==
T_A
)
for
(
intr
=
daemon
->
int_names
;
intr
;
intr
=
intr
->
next
)
for
(
intr
=
daemon
->
int_names
;
intr
;
intr
=
intr
->
next
)
...
...
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