Closed cssivision closed 6 years ago
Hi! Thank you for a review. Still I think this crate must be only a parser of resolv.conf file. For example in OS X there are /etc/resolve/*
files, which have the same format but domain
option treated differently.
On the other hand we may make a method: .get_domain_or_fallback()
to do that (the other thing it might have to do is look LOCALDOMAIN
env variable). Would you like to make a PR? (but note #6)
it seems https://github.com/tailhook/resolv-conf/pull/6 is a big change, i will fire a pr after it is merged.
If no domain entry is present, the domain is determined from the local hostname returned by gethostname(2)