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
baa80ae5
Commit
baa80ae5
authored
May 29, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove limit in prefix length in --auth-zone.
parent
3e8ed78b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
CHANGELOG
CHANGELOG
+4
-1
man/dnsmasq.8
man/dnsmasq.8
+6
-3
src/auth.c
src/auth.c
+2
-2
src/option.c
src/option.c
+0
-2
No files found.
CHANGELOG
View file @
baa80ae5
...
...
@@ -43,7 +43,10 @@ version 2.67
Fix option parsing for --dhcp-host, which was generating a
spurious error when all seven possible items were
included. Thanks to Zhiqiang Wang for the bug report.
Remove restriction on prefix-length in --auth-zone. Thanks
to Toke Hoiland-Jorgensen for suggesting this.
version 2.66
Add the ability to act as an authoritative DNS
...
...
man/dnsmasq.8
View file @
baa80ae5
...
...
@@ -572,13 +572,16 @@ If you use the first DNSSEC mode, validating resolvers in clients,
this option is not required. Dnsmasq always returns all the data
needed for a client to do validation itself.
.TP
.B --auth-zone=<domain>[,<subnet>[
,<subnet>
.....]]
.B --auth-zone=<domain>[,<subnet>[
/<prefix length>][,<subnet>[/<prefix length>]
.....]]
Define a DNS zone for which dnsmasq acts as authoritative server. Locally defined DNS records which are in the domain
will be served, except that A and AAAA records must be in one of the
specified subnets, or in a subnet corresponding to a constructed DHCP
range. The subnet(s) are also used to define in-addr.arpa and
ipv6.arpa domains which are served for reverse-DNS queries. For IPv4
subnets, the prefix length is limited to the values 8, 16 or 24.
ipv6.arpa domains which are served for reverse-DNS queries. If not
specified, the prefix length defaults to 24 for IPv4 and 64 for IPv6.
For IPv4 subnets, the prefix length should be have the value 8, 16 or 24
unless you are familiar with RFC 2317 and have arranged the
in-addr.arpa delegation accordingly.
.TP
.B --auth-soa=<serial>[,<hostmaster>[,<refresh>[,<retry>[,<expiry>]]]]
Specify fields in the SOA record associated with authoritative
...
...
src/auth.c
View file @
baa80ae5
...
...
@@ -520,10 +520,10 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
in_addr_t
a
=
ntohl
(
subnet
->
addr4
.
s_addr
)
>>
8
;
char
*
p
=
name
;
if
(
subnet
->
prefixlen
=
=
24
)
if
(
subnet
->
prefixlen
>
=
24
)
p
+=
sprintf
(
p
,
"%d."
,
a
&
0xff
);
a
=
a
>>
8
;
if
(
subnet
->
prefixlen
!=
8
)
if
(
subnet
->
prefixlen
>=
16
)
p
+=
sprintf
(
p
,
"%d."
,
a
&
0xff
);
a
=
a
>>
8
;
p
+=
sprintf
(
p
,
"%d.in-addr.arpa"
,
a
&
0xff
);
...
...
src/option.c
View file @
baa80ae5
...
...
@@ -1637,8 +1637,6 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
if
(
inet_pton
(
AF_INET
,
arg
,
&
subnet
->
addr4
))
{
if
((
prefixlen
&
0x07
)
!=
0
||
prefixlen
>
24
)
ret_err
(
_
(
"bad prefix"
));
subnet
->
prefixlen
=
(
prefixlen
==
0
)
?
24
:
prefixlen
;
subnet
->
is6
=
0
;
}
...
...
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