Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-04-2007, 08:49 AM   #1
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
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
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,946
Blog Entries: 14

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
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:

The line would check for a fully qualified domain name FQDN that had either or on it if you had not specified a FQDN. (e.g. typing "host" would be specifiying a FQDN but typing "host myserver" is NOT a FQDN. "host myserver" would first check for and if not found would check for

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 and if it doesn't find an answer or doesn't respond it will check the one at

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
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:09 PM.

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