Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am a total Linux newbie, however I use to be real good with a DOS prompt.
Anyhoo, how does one make Linux keep network settings? For example, I will run NETCONF and enter the DNS address that I need to access DSL. However, upon reboot the DNS address is gone and reset back to whatever was there before.
Oh, by the way, I'm using Mandrake 9.1 if that makes a difference.
You might have it setup to use DHCP which will automatically remove all entries in /etc/resolv.conf upon reboot. If your ISP's DHCP server isn't sending the DNS info at the same time of IP resolution, you can probably either try:
Yes, it's DHCP. For the Windows machines in the office I have to plug in the DNS address in order to gain internet access.
I tried what you suggested, although I suspect I may be doing something wrong. The output of the "echo" generated NAMESERVER <address>. I placed that in the rc.local file, but the system still doesn't keep the DNS address. It looks like it defaults to some values that Mandrake put in some configuration file.
Any other ideas? Isn't there a network config file around somewhere that can be edited to accept this DNS address as the default?
Open up (in a text editor) your /etc/rc.local file and add the following (replacing 22.214.171.124 with actual IP and such):
echo "nameserver 126.96.36.199" >> /etc/resolv.conf
echo "nameserver 188.8.131.52" >> /etc/resolv.conf
Save and exit. Now, during bootup it should echo those 'nameserver 184.108.40.206' entries into the /etc/resolv.conf file making the DNS servers already there (no need to run netconf each time).
Other ideas might include checking out the network configurator in the Mandrake Control Center, however I think that if you have to plug these values in manually (regardless of OS) then the echo is going to be along the lines of "your best shot" for now. If I am mistaken, and in win you just boot up using DHCP and the values for DNS are already there, then please let me know.
Thanks for the reply, but still doesn't work. I placed the echo statement in the rc.local file, but Linux is still overwriting resolv.conf with it's own settings. I've even tried setting resolv.conf as read-only and it STILL gets blown away.
It appears that Linux is obtaining these DNS addresses from the DHCP but the thing is, the addresses obtained are WRONG. I need to manually enter the correct address and have it stick and not be changed next time I reboot.
I'm a bit confused because in Windows this is an extremely simple thing to do. I/we have got to be missing something.