what is the use of network-script, resolv.conf, network
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
resolv.conf is where you specify which name servers or domains to search. These are necessary for doing name lookups (e.g. with commands like nslookup, host or dig or with programs that use C routines such as gethostbyname. They check for the server name and return its IP address.
The line would check for a fully qualified domain name FQDN that had either mydomain.com or mydomain.net on it if you had not specified a FQDN. (e.g. typing "host www.yahoo.com" would be specifiying a FQDN but typing "host myserver" is NOT a FQDN. "host myserver" would first check for myserver.mydomain.com and if not found would check for myserver.mydomain.net).
The next two lines tell it which nameserver (typically a DNS server but not always) to search for. It will first check the one at 10.0.0.1 and if it doesn't find an answer or doesn't respond it will check the one at 10.0.0.2.
network.script and network vary by distro.
For example on RedHat/Fedora there is a directory called /etc/sysconfig that contains a subdirectory called network-scripts that contains various things such as the ifcfg-eth# scripts used for starting up each interface at boot.
Also RedHat/Fedora contains /etc/sysconfig/network which basically contains the FQDN for the server it is on as well as the default gateway.