Differences From Artifact [54daba6e99]:
- File
src/OFDNSResolver.m
— part of check-in
[dd375b6d4e]
at
2018-07-08 12:07:16
on branch trunk
— Initial code for OFDNSResolver
This does nothing more than parse /etc/hosts and /etc/resolv.conf so
far. (user: js, size: 6764) [annotate] [blame] [check-ins using]
To Artifact [07800749f7]:
- File src/OFDNSResolver.m — part of check-in [418965bae3] at 2018-07-08 19:42:28 on branch trunk — OFDNSResolver: Paths for hosts file on more OSes (user: js, size: 7089) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | { self = [super init]; @try { _minNumberOfDotsInAbsoluteName = 1; #ifdef OF_HAVE_FILES [self of_parseHosts: @"/etc/hosts"]; [self of_parseResolvConf: @"/etc/resolv.conf"]; [self of_parseResolvConf: @"/etc/resolv.conf.tail"]; #endif if (_staticHosts == nil) _staticHosts = [[OFDictionary alloc] init]; | > > > > > > > > > > | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | { self = [super init]; @try { _minNumberOfDotsInAbsoluteName = 1; #ifdef OF_HAVE_FILES # if defined(OF_HAIKU) [self of_parseHosts: @"/boot/common/settings/network/hosts"]; # elif defined(OF_MORPHOS) [self of_parseHosts: @"ENVARC:sys/net/hosts"]; # elif defined(OF_AMIGAOS4) [self of_parseHosts: @"DEVS:Internet/hosts"]; # elif defined(OF_AMIGAOS) [self of_parseHosts: @"AmiTCP:db/hosts"]; # else [self of_parseHosts: @"/etc/hosts"]; # endif [self of_parseResolvConf: @"/etc/resolv.conf"]; [self of_parseResolvConf: @"/etc/resolv.conf.tail"]; #endif if (_staticHosts == nil) _staticHosts = [[OFDictionary alloc] init]; |
︙ | ︙ |