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
979fe86b
Commit
979fe86b
authored
Mar 19, 2015
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make --address=/example.com/ equivalent to --server=/example.com/
parent
ff841ebf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
man/dnsmasq.8
man/dnsmasq.8
+5
-2
src/network.c
src/network.c
+2
-2
src/option.c
src/option.c
+0
-2
No files found.
man/dnsmasq.8
View file @
979fe86b
...
...
@@ -460,7 +460,7 @@ but provides some syntactic sugar to make specifying address-to-name queries eas
is exactly equivalent to
.B --server=/3.2.1.in-addr.arpa/192.168.0.1
.TP
.B \-A, --address=/<domain>/[domain/]
<ipaddr>
.B \-A, --address=/<domain>/[domain/]
[<ipaddr>]
Specify an IP address to return for any host in the given domains.
Queries in the domains are never forwarded and always replied to
with the specified IP address which may be IPv4 or IPv6. To give
...
...
@@ -472,7 +472,10 @@ domain specification works in the same was as for --server, with the
additional facility that /#/ matches any domain. Thus
--address=/#/1.2.3.4 will always return 1.2.3.4 for any query not
answered from /etc/hosts or DHCP and not sent to an upstream
nameserver by a more specific --server directive.
nameserver by a more specific --server directive. As for --server,
one or more domains with no address returns a no-such-domain answer, so
--address=/example.com/ is equivalent to --server=/example.com/ and returns
NXDOMAIN for example.com and all its subdomains.
.TP
.B --ipset=/<domain>/[domain/]<ipset>[,<ipset>]
Places the resolved IP addresses of queries for the specified domains
...
...
src/network.c
View file @
979fe86b
...
...
@@ -1459,7 +1459,7 @@ void check_servers(void)
}
}
if
(
!
(
serv
->
flags
&
SERV_NO_REBIND
))
if
(
!
(
serv
->
flags
&
SERV_NO_REBIND
)
&&
!
(
serv
->
flags
&
SERV_LITERAL_ADDRESS
)
)
{
if
(
serv
->
flags
&
(
SERV_HAS_DOMAIN
|
SERV_FOR_NODOTS
|
SERV_USE_RESOLV
))
{
...
...
@@ -1475,7 +1475,7 @@ void check_servers(void)
my_syslog
(
LOG_INFO
,
_
(
"using local addresses only for %s %s"
),
s1
,
s2
);
else
if
(
serv
->
flags
&
SERV_USE_RESOLV
)
my_syslog
(
LOG_INFO
,
_
(
"using standard nameservers for %s %s"
),
s1
,
s2
);
else
if
(
!
(
serv
->
flags
&
SERV_LITERAL_ADDRESS
))
else
my_syslog
(
LOG_INFO
,
_
(
"using nameserver %s#%d for %s %s"
),
daemon
->
namebuff
,
port
,
s1
,
s2
);
}
#ifdef HAVE_LOOP
...
...
src/option.c
View file @
979fe86b
...
...
@@ -2284,8 +2284,6 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
{
if
(
!
(
newlist
->
flags
&
SERV_NO_REBIND
))
newlist
->
flags
|=
SERV_NO_ADDR
;
/* no server */
if
(
newlist
->
flags
&
SERV_LITERAL_ADDRESS
)
ret_err
(
gen_err
);
}
else
if
(
strcmp
(
arg
,
"#"
)
==
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