File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ pub struct Config {
94
94
pub no_tld_query : bool ,
95
95
/// Force using TCP for DNS resolution
96
96
pub use_vc : bool ,
97
+ /// Disable the automatic reloading of a changed configuration file
98
+ pub no_reload : bool ,
99
+ /// Optionally send the AD (authenticated data) bit in queries
100
+ pub trust_ad : bool ,
97
101
/// The order in which databases should be searched during a lookup
98
102
/// **(openbsd-only)**
99
103
pub lookup : Vec < Lookup > ,
@@ -150,6 +154,8 @@ impl Config {
150
154
single_request_reopen : false ,
151
155
no_tld_query : false ,
152
156
use_vc : false ,
157
+ no_reload : false ,
158
+ trust_ad : false ,
153
159
lookup : Vec :: new ( ) ,
154
160
family : Vec :: new ( ) ,
155
161
}
@@ -370,6 +376,12 @@ impl fmt::Display for Config {
370
376
if self . use_vc {
371
377
writeln ! ( fmt, "options use-vc" ) ?;
372
378
}
379
+ if self . no_reload {
380
+ writeln ! ( fmt, "options no-reload" ) ?;
381
+ }
382
+ if self . trust_ad {
383
+ writeln ! ( fmt, "options trust-ad" ) ?;
384
+ }
373
385
374
386
Ok ( ( ) )
375
387
}
Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ pub(crate) fn parse(bytes: &[u8]) -> Result<Config, ParseError> {
198
198
( "edns0" , _) => cfg. edns0 = true ,
199
199
( "single-request" , _) => cfg. single_request = true ,
200
200
( "single-request-reopen" , _) => cfg. single_request_reopen = true ,
201
+ ( "no-reload" , _) => cfg. no_reload = true ,
202
+ ( "trust-ad" , _) => cfg. trust_ad = true ,
201
203
( "no-tld-query" , _) => cfg. no_tld_query = true ,
202
204
( "use-vc" , _) => cfg. use_vc = true ,
203
205
_ => return Err ( InvalidOption ( lineno) ) ,
You can’t perform that action at this time.
0 commit comments