Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lookupStaticAddr (0.37 sec)

  1. src/net/dnsclient_unix.go

    func (r *Resolver) goLookupPTR(ctx context.Context, addr string, order hostLookupOrder, conf *dnsConfig) ([]string, error) {
    	if order == hostLookupFiles || order == hostLookupFilesDNS {
    		names := lookupStaticAddr(addr)
    		if len(names) > 0 {
    			return names, nil
    		}
    
    		if order == hostLookupFiles {
    			return nil, newDNSError(errNoSuchHost, addr, "")
    		}
    	}
    
    	arpa, err := reverseaddr(addr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top