func (r *Resolver) Resolve(name string, ipVer int) (net.IP, error) {
	maxAge := r.DefaultMaxAge
	if maxAge == 0 {
		maxAge = defaultMaxAge
	}
	return r.ResolveWithMaxAge(name, ipVer, maxAge)
}
// Resolve returns IP address for a name. It's same as ResolveWithMaxAge, except for that it uses
// DefaultMaxAge for validating the cache record.
Resolve returns IP address for a name. It's same as ResolveWithMaxAge, except for that it uses
DefaultMaxAge for validating the cache record.
// Resolve returns IP address for a name . It ' s same as ResolveWithMaxAge except for that it uses // DefaultMaxAge for validating the cache record .
func (r *Resolver) Resolve(name string, ipVer int) (net.IP, error) {
	maxAge := r.DefaultMaxAge
	if maxAge == 0 {
		maxAge = defaultMaxAge
	}
	return r.ResolveWithMaxAge(name, ipVer, maxAge)
}
func ( r * Resolver ) Resolve ( name string , ipVer int ) ( net . IP , error ) { maxAge := r . DefaultMaxAge if maxAge == 0 { maxAge = defaultMaxAge } return r . ResolveWithMaxAge ( name , ipVer , maxAge ) }
Resolve returns IP address for a name.
Resolve returns IP address for a name .