Skip to content

Commit

Permalink
set FQDN for domain names in hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
hch12907 committed Feb 19, 2024
1 parent c7c6b57 commit 9564566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/resolver/src/hosts.rs
Expand Up @@ -125,7 +125,8 @@ impl Hosts {
};

for domain in fields.iter().skip(1).map(|domain| domain.to_lowercase()) {
if let Ok(name) = Name::from_str(&domain) {
if let Ok(mut name) = Name::from_str(&domain) {
name.set_fqdn(true);
let record = Record::from_rdata(name.clone(), dns_lru::MAX_TTL, addr.clone());

match addr {
Expand Down

0 comments on commit 9564566

Please sign in to comment.