Home | History | Annotate | Download | only in net

Lines Matching refs:conf

7 // Read system DNS config from /etc/resolv.conf
22 err error // any error that occurs during open of resolv.conf
25 // See resolv.conf(5) on a Linux machine.
29 conf := &dnsConfig{
36 conf.servers = defaultNS
37 conf.err = err
38 return conf
52 if len(f) > 1 && len(conf.servers) < 3 { // small, but the standard limit
57 conf.servers = append(conf.servers, f[1])
59 conf.servers = append(conf.servers, f[1])
65 conf.search = []string{f[1]}
69 conf.search = make([]string, len(f)-1)
70 for i := 0; i < len(conf.search); i++ {
71 conf.search[i] = f[i+1]
82 conf.ndots = n
88 conf.timeout = n
94 conf.attempts = n
96 conf.rotate = true
98 conf.unknownOpt = true
104 // http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/resolv.conf.5
106 conf.lookup = f[1:]
109 conf.unknownOpt = true
112 if len(conf.servers) == 0 {
113 conf.servers = defaultNS
115 return conf