edwardp Posted November 3, 2006 Report Share Posted November 3, 2006 (edited) On one of my systems, I have discovered a problem relating to DHCP. Specifically, it is retriving information from the router via DHCP when it is explicitly told not to, according to the settings in the Control Center. Retrieving DNS, YV and NTPD servers via DHCP are all NOT checked, yet it is pulling in the secondary DNS server and overwriting resolv.conf even after I made that file read-only. The issue with resolv.conf: SEARCH has a period at the end of the domain, example: system.mandrivausers.org. NAMESERVER (address of router - manually input in Control Center) NAMESERVER (secondary DNS retrieved via DHCP) I su into root, edit resolv.conf to remove the ending period in the search domain and remove the secondary DNS, since the router will query as needed, then save the file. Everything is fine until the next system boot. Upon the next system boot, the resolv.conf is back to where it was previously as shown above, even after the file was made read-only. If a file is made read-only, it should not have been touched, correct? before read only: -rw-r--r-- after read-only: -r--r--r-- I also looked at the network settings on my other system and they are both the same. I cannot understand why the other system is working as desired (without having to fiddle with resolv.conf), yet on this system, it continues to overwrite my changes. Any help is appreciated, thank you. Edited November 3, 2006 by edwardp Quote Link to comment Share on other sites More sharing options...
edwardp Posted November 3, 2006 Author Report Share Posted November 3, 2006 On the router's main screen, I was able to manuslly input and save the domain name and DNS addresses into the router. Upon rebooting the system, resolv.conf now correctly displays the search domain without the period at the end and is now using a third DNS server. Quote Link to comment Share on other sites More sharing options...
Qchem Posted November 3, 2006 Report Share Posted November 3, 2006 If you ever want to lock the file properly (and are using ext2 or ext3) you can do the following: chattr +i /etc/resolv.conf then dhcp won't overwrite it. Quote Link to comment Share on other sites More sharing options...
edwardp Posted November 3, 2006 Author Report Share Posted November 3, 2006 The file system it is using, is ReiserFS. I previously used SuSE Linux and ReiserFS is what SuSE used by default. When I changed to Mandriva, there was nothing that I could see during the partitioning that would let me change it to another file system. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 4, 2006 Report Share Posted November 4, 2006 There's no real way to convert filesystems as such, but if you have space, easy enough to create a partition, copy the data across, and then ensure it uses this after a reboot, then you can delete the old partition, and allocate this space for something else, etc. Or move the data back after creating a partition with the new file system in the space that's just been freed up, and then copying it back again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.