LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-04-2007, 08:49 AM   #1
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Rep: Reputation: 15
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?!...
 
Old 01-04-2007, 09:00 AM   #2
NSWKim
LQ Newbie
 
Registered: Jul 2006
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 15
Lightbulb 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.
 
Old 01-04-2007, 09:06 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 01-06-2007, 08:23 AM   #4
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
thanks a bunch..now i really know those file usage.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
resolv.conf changing everytime network restart cuco76 Linux - Networking 4 11-29-2004 08:19 PM
where does system-config-network put dns info, besides /etc/resolv.conf ? bdp Fedora 1 09-03-2004 12:09 AM
resolv.conf?? wrat Linux - Newbie 3 06-14-2004 04:37 PM
resolv.conf ricemark20 Linux - Networking 12 11-11-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration