Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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)
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.
"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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.