nameservice set up, because the computer won’t know
nameservice set up, because the computer won’t know it has a nameserver running unless you tell it! Just about anything you do on a network will require a working nameservice client. Use keywords in /etc/resolv.conf to tell your system’s resolver where to look for information. Domain or Search Keywords When you’re working on machines on your own network, you don’t want to have to type the whole hostname. (If you have 30 Web servers, typing ssh www19.mycompany.com gets old.) To tell the resolver which domains to check by default, use either a domain or a search keyword in /etc/resolv.conf. Specifying the Local Domain The domain keyword tells the resolver which local domain name to check, by default, for hosts. For example, to specify http://absolutebsd.com/ as the local domain, enter this: ………………………………………………………………………………………. domain AbsoluteBSD.com ………………………………………………………………………………………. Once the local domain is specified, any command that would ordinarily require a domain name will be assumed to be pointing to http://absolutebsd.com/. Were I to ping www, the resolver would append the name http://www.absolutebsd.com/ to that and tell ping to try http://www.absolutebsd.com/. Specifying a List of Domains with Search Alternatively, I can use the search keyword to specify a list of domains to try. Perhaps my company has several domain names in use in different parts of the network I could enter the following: ………………………………………………………………………………….. search http://absolutebsd.com/ blackhelicopters.org stenchmaster.org ………………………………………………………………………………….. In this case, the resolver will check these three domain names in the order written, until it finds a match. For example, if I enter ping petulance, it will try to find petulance.AbsoluteBSD.com. If that fails, it will check for petulance.blackhelicopters.org, the next domain in order. Finally, it will check for petulance.stenchmaster.com. If no such host exists in any of these domains, the command will eventually fail. Note If you don’t list either a domain or a search keyword, the resolver will use the local machine’s domain name. 274
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost PHP Web Hosting services