Hugh McIntyre wrote: > Prashant Poman wrote: > >> What is DNS search list?How to decide what should be there? >> > > To add to the info the previous commenters supplied: > > You can have a series of domain names to use for lookups. For example, > some bits of Sun might use "sfbay.sun.com sun.com", meaning to look for > host.sfbay.sun.com, and then host.sun.com if the first lookup fails. > Here at home I use i.mcintyreweb.com (for hosts inside NAT) and then > mcintyreweb.com (for some other non-NAT hosts). > > This is not at all common though. Unless you have a very unusual setup, > you probably only want a single domain, if that. > > Though when your domains are related like that, it's easier to just use the 'domain' keyword:
domain sfbay.sun.com or domain i.mcintyreweb.com Because those will cause dns to try the listed domain, and then repeatedly remove the leftmost subdomain, and retry until there are only 2 parts left. For example: domain a.b.c.d.foo.com will search for 'host' in this order: host.a.b.c.d.foo.com host.b.c.d.foo.com host.c.d.foo.com host.d.foo.com host.foo.com 'search' is useful when your domains to search aren't related at all, like a.b.foo.com, and d.e.bar.org -Kyle > Hugh. > > _______________________________________________ > opensolaris-discuss mailing list > opensolaris-discuss@opensolaris.org > _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org