LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   setting My name server (https://www.linuxquestions.org/questions/linux-networking-3/setting-my-name-server-230719/)

lenlutz 09-14-2004 09:19 PM

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.......

HappyTux 09-14-2004 09:54 PM

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

lenlutz 09-15-2004 08:47 AM

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....

jdelaros1 09-15-2004 11:38 AM

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...

lenlutz 09-15-2004 01:16 PM

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

jdelaros1 10-25-2004 10:26 AM

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.

lenlutz 10-25-2004 02:06 PM

setting my name server
 
cant seem to find "search" ??


All times are GMT -5. The time now is 04:46 PM.