mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-11-10 00:27:21 +01:00
Disabled domain search as it caused problems
This commit is contained in:
parent
2fe1b69174
commit
231e46a688
@ -72,7 +72,7 @@ This configuration option will not be exposed over the webinterface.
|
||||
|
||||
By default echoip-slatecave uses the system configuration for dns like most other programs.
|
||||
|
||||
In case this is undesired one can difable it by setting `enable_system_resolver` to false.
|
||||
In case this is undesired one can disable it by setting `enable_system_resolver` to false.
|
||||
|
||||
```toml
|
||||
[dns]
|
||||
@ -94,6 +94,8 @@ In case you want to use the system resolver and customize it.
|
||||
|
||||
This is for a work in progress feature that allows confiuring search domains for all custom dns resolvers.
|
||||
|
||||
Note: it is currently disabled as it was causing problems.
|
||||
|
||||
### Custom resolvers
|
||||
|
||||
It is possible to confgure custom resolvers in plce of or in addition to the default system resolver.
|
||||
|
@ -103,16 +103,10 @@ impl DnsResolverConfig {
|
||||
bind_addr: self.bind_address,
|
||||
});
|
||||
}
|
||||
for search in &self.search {
|
||||
if let Ok(name) = Name::from_str_relaxed(search) {
|
||||
resolver.add_search(name);
|
||||
}
|
||||
}
|
||||
for search in additional_search {
|
||||
if let Ok(name) = Name::from_str_relaxed(search) {
|
||||
resolver.add_search(name);
|
||||
}
|
||||
}
|
||||
// Not configuring domain search here because searching
|
||||
// on the resolver level is a bad idea unless we are
|
||||
// taling about the system resolver which we
|
||||
// can't tell what to do (which is good!)
|
||||
return resolver;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user