Linux - Software This 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. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-04-2007, 08:49 AM
|
#1
|
Member
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66
Rep:
|
what is the use of network-script, resolv.conf, network
i am really new in linux,could somebody tell me network-script, resolv.conf, network is used for what?!...
|
|
|
01-04-2007, 09:00 AM
|
#2
|
LQ Newbie
Registered: Jul 2006
Distribution: Ubuntu
Posts: 22
Rep:
|
Networking of course
Assuming you're using a redhat variant since you have no distro listed:
network: general information like Hostname and Gateway
network-scripts: location of network initialization and config scripts
resolv.conf: configuration of your local nameservers.
|
|
|
01-04-2007, 09:06 AM
|
#3
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
You need to specify your distro for some of this.
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.
Say you had a resolv.conf like the following:
mydomain.com mydomain.net
nameserver=10.0.0.1
nameserver=10.0.0.2
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.
|
|
|
01-06-2007, 08:23 AM
|
#4
|
Member
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66
Original Poster
Rep:
|
thanks a bunch..now i really know those file usage. 
|
|
|
All times are GMT -5. The time now is 06:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|