LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2004, 09:19 PM   #1
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
setting My name server


when i search for "setting name server", "setting named server", or "setting dns", i get all kinds of help, on setting UP MY dns... i Have that working....
what i want to know is how i tell MY linux machine, where (which) name server to use (like that silly box, in winders, under ip address)...
i "Think" its /etc/resolv.conf....But, im not so sure AND, if it is....
what should be in it....
also, is there a gui tool (though i like vi best... always... it Never messes up)

Thanks.......
 
Old 09-14-2004, 09:54 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: setting My name server

Quote:
Originally posted by lenlutz

i "Think" its /etc/resolv.conf....But, im not so sure AND, if it is....
what should be in it....
also, is there a gui tool (though i like vi best... always... it Never messes up)

Thanks.......
You are correct and this is an example from my file.
Code:
search wolf
nameserver 192.168.1.10
nameserver 192.168.1.34
The search of your domain may not be necessary even if your ISP provided it to you and only the one nameserver line is needed but it is always good to have the second in case the primary nameserver goes down so a real simple file could look like this.
Code:
nameserver 192.168.1.10
 
Old 09-15-2004, 08:47 AM   #3
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
setting My name server

Thankyou so much for replying.. NOW... just one more question


could you explain that "search wolf" ?

if im "len.myhouse.net"

whould i enter:

Search myhouse

on the first line ???

and......... why ??

thanks again....
 
Old 09-15-2004, 11:38 AM   #4
jdelaros1
LQ Newbie
 
Registered: Sep 2003
Location: Austin, TX USA
Distribution: Fedora 1.0, 2.0 & SuSE 9.2
Posts: 20

Rep: Reputation: 0
From:

http://publib16.boulder.ibm.com/doc_...esolv.conf.htm

"A search entry defines the list of domains to search when resolving a name. Only one domain entry or search entry can be used. If the domain entry is used, the default search list is the default domain. A search entry should be used when a search list other than the default is required. The entry is of the form:

search DomainName ...

The search entry can have from one to six DomainName variables. The first DomainName variable is interpreted as the default domain name. The DomainName variable is the name of a domain that should be included in the search list."

So you would enter "myhouse.net" in the search line (I'm assuming "len" is a host name). Hope this helps...
 
Old 09-15-2004, 01:16 PM   #5
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
ok.. One last simple question
(redhat 8)
Is there ANY command to see what name servers one is using like:

"showdns"
121.121.121.121
122.122.122.122
 
Old 10-25-2004, 10:26 AM   #6
jdelaros1
LQ Newbie
 
Registered: Sep 2003
Location: Austin, TX USA
Distribution: Fedora 1.0, 2.0 & SuSE 9.2
Posts: 20

Rep: Reputation: 0
Not that I know of, but you can always write a simple shell script to get this information from /etc/resolv.conf or /etc/named.conf. It shouldn't take more than 5 lines of code.
 
Old 10-25-2004, 02:06 PM   #7
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
setting my name server

cant seem to find "search" ??
 
  


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
Setting up a Linix Server as a proxy server Bill Fox Linux - Software 2 01-31-2005 09:38 PM
Setting up a FTP server and Game server Spyiish Slackware 38 11-01-2004 05:32 AM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:46 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