[SOLVED] How Can I Stop DHCPCD from Overwriting my /etc/resolv.conf...

Hey guys,
For some unknown reason /etc/dhcpcd.conf continually overwrites my /etc/resolv.conf file, eventhough I set the "nohook resolv.conf" hook in /etc/dhcpcd.conf.
This is screwing up my DNS and intermittently creating connection problems. Any of you guys know why the hook is not taking effect or how I can stop dhcpcd from overwritting this file?
Thanks
Last edited by w201 (2013-03-18 19:05:15)

drcouzelis wrote:
w201 wrote:I set the "nohook resolv.conf" hook in /etc/dhcpcd.conf.
kaszak696 wrote:
dhcpcd's configuration file may be edited to prevent the dhcpcd daemon from overwriting /etc/resolv.conf. To do this, add the following to the last section of /etc/dhcpcd.conf:
nohook resolv.conf
I don't think that information will help w201...
I changed my DNS to the Google one (8.8.8.8 or something). That's in "resolv.conf", isn't it? I remember editing some OTHER configuration file, which is then read to create the "resolve.conf" file. There it is, in that link to the wiki, under "Use resolv.conf.head". Does that help you do what you want to do?
There's three techniques at the wiki link, the nohook one, the resolv.conf.head one and the write-protection attribute. 

Similar Messages

  • How can I stop Lion from overwriting my apache conf files

    I am at the point of abandoning OS X forever and returning to loading NetBSD on macs.  I have never been so angry at a piece of Apple software. 
    On reboot, the server completely wiped out my apache configuration and rebuilt it.  Thankfully I had backups.
    How I can prevent Lion from interfering with my apache setup?  I will NEVER use that crappy admin tool again.  Webmin is FAR superior to it if I need a GUI tool.  I can live in the shell very happily.  I don't want to have to install a new webserver from source if I can avoid it. I just want to stop Lion from destroying my conf files.
    How do I wrest control from this monster?

    All we did was not modify httpd.conf other than adding an include at the end. If you put your content in other files, it doesn't seem to mess with them.

  • How can I stop iCloud from overwriting my bookmarks recovered by a restore from computer?

    I am moving to a new iPad. I made the mistake of deleting my bookmarks on the old iPad before resetting it to factory settings. As a result I have somehow got no bookmarks in iCloud. When I do a full restore from computer I get my bookmarks back but only until I connect to the internet when iCloud immediately overwrites the recovered bookmarks with no bookmarks.
    I've tried pretty much everything I can think of including deleting everything I see in iCloud Control Panel/Manage Storage. However these (non) bookmarks are obviously kept somewhere else that I can't find.
    I need to replace the iCloud bookmarks with the ones I recover from the computer restore. How do I do that?
    Thanks.

    Touch Copy appears to be now named iPhone Backup Extractor (although it works for iPads as well). It appears to deal only with any backups you may have on the computer it's installed on, not with the device itself. So if you have no computer backup where the lost info can be found then this software is no use.
    Happily, I do have a very recent (2 days ago) computer backup, albeit encrypted. It seems to be necessary to buy the software to get it to do what you want. I succeeded in extracting the bookmarks as a bookmarks.db file from my encrypted computer backup of the iPad.
    Then it's necessary to use more software, SQLite, to extract the information from the bookmarks.db file. This software is free but seriously geeky, not at all user friendly. I have managed to obtain a .csv file from the bookmarks.db file which is at least readable, but not able to be imported into Firefox which appears to accept only .html files for importing bookmarks.
    Likewise, Safari doesn't appear to accept for import either .db (the iPad file type ironically) or .csv and neither IE nor Chrome won't accept other than .html etc files.
    SQLite would seem to be off the mark in not offering .html and its cousins as export formats. And given .db is in fact useless without SQLite and SQLite is both difficult to use and in any event doesn't solve the problem, it would seem obvious IPhone Backup Extractor needs to look at providing conversion of .db files to .html files. But the proper solution is for Apple to enable the overriding of iCloud information with restored from backup information.
    What I have now is a .db file of my precious bookmarks which appears to be unusable with any Apple product to override the wretched dominance of iCloud. Absurd that iCloud actually prevents one from restoring an iPad to an earlier time. What's the point of restore if iCloud is going to subvert it each time?
    Anyone who has any thoughts towards a solution would be most welcome!

  • How can I stop iMovie from making thumbnails of clips from past projects when opening the program to digitize new clips for new project. i have looked in the preferences and couldn't figure out what to disable.

    How can I stop iMovie from making thumbnails of clips from past projects when first opening the program to digitize new clips for a new project. It takes forever for it and is very annoying. I have looked in the preferences and couldn't figure out what would disable this problem.

    You do not need to move your cursor much when pressing the mouse button to cause the tab to tear-off/tear-away into a new tab. No "sensitivity" setting that I am aware of. The tab in the new window can be dragged back to the original window.
    To disable the feature, install this: https://addons.mozilla.org/en-US/firefox/addon/bug489729-disable-detach-and-t/
    *Read the information on the above page
    *Set options for the add-on: Add-ons > Extensions, click Options next to the specific Extension (the 2 options are defined/explained in the above page).
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I stop Firefox from opening (to "File Not Found") when opening my Opera browser?

    Ever since I installed Opera 10.61 on my new computer (Windows 7 Ultimate operating system), whenever I open Opera, Firefox opens one second later with the following error message:
    '''File not found '''
    Firefox can't find the file at /C:/Users/Nasheed/AppData/Local/Opera/Opera/temporary_downloads/client-en.xml.
    * Check the file name for capitalization or other typing errors.
    * Check to see if the file was moved, renamed or deleted.
    TRY AGAIN.
    <nowiki>****************************************************</nowiki><br />
    This happens EVERY TIME I OPEN THE OPERA BROWSER. How can I stop this from happening? I'm stumped.
    [EXTRA INFO - I was unable to enable Firefox to access my previous profile on the new computer (despite putting the old profile in the appropriate Mozilla Firefox folder. So, there are now two profiles in that location.
    After reading the answer to another forum member's question, I attempted to resolve the problem using Profile Manager, but I was unable to locate the Profile Manager. The Windows "Search" feature is not enabled on my new computer (nor can it be enabled from the Customize Start Menu options).]

    Thank you for your response, Cor-el.
    I had Opera set as my default browser since this began happening. I changed my default browser back to Firefox mainly because having Firefox open one or two seconds every time I open Opera was/is such a nuisance.
    I believe this problem began because I attempted to manually transfer the files from my old computer to the new one (via the backed up files in my external drive). I was unfamiliar with Windows 7 when I did this. Microsoft changed the file set up from what I had been used to in Windows XP. I used XP for six years before being exposed to Windows 7 (I never had Vista).
    I'm almost sure this problem has something to do with where I placed the application data when I was trying to reestablish the program set up on the new computer.

  • I do not want to upgrade to 7.0, I am attending online college and the upgraded version does not work with my school. How can I stop Firefox from upgrading? I have to keep uninstalling the upgrade and installing the old one.

    How can I stop Firefox from automatically upgrading? My on-line college is not compatible with the upgraded version. I have to keep uninstalling the new one and reinstalling the old one.

    It's not a good idea to allow websites to redirect to another site until you know for sure the original site is trustworthy.
    But if you still want to do it (again not a good idea).
    Tools>Options>Advanced>General - In Accessibility, uncheck "warn me when web sites try to redirect..." option.

  • HT1766 Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    You can share the same Apple ID in
    Settings > iTunes & App Store > Apple ID: here
    But for all other Apple services like:
    FaceTime, iMessage, iCloud, etc, one of you should use a different Apple ID.

  • How can I stop iTunes from trying to start in another open user account?

    When I run iTunes, it often tries to open in another open User account, causing distracting Windows warning tones.  How can I stop it from trying to automatically open in the other account?

    Close iTunes before switching profiles or disable fast user switching.
    tt2

  • How can i stop iMessage from going through my email and only go through my number.

    How can i stop iMessage from sending messages through my email also.  I would like them to only go through my phone

    In Settings > Messages > Send & Receive, delete your email address(es).

  • How can I stop iPhoto from reidentifying faces I have already 'crossed', while still being able to identify and sort new faces.

    iPhoto has detected faces of people I dont know, in my 'iPhoto faces' whenever I click the cross in the corner of the face (when sorting faces) the face temporarily disappears, but once I have uploaded a fresh batch of photos (and want to identify new faces) it automatically re-identifies the old photos that I don't want to have to sort again. How can I stop iPhoto from reidentifying faces I have already 'crossed', while still being able to identify and sort new faces.

    Thank you, that makes sense (I think!) However, I need to be able to tell iPhoto who the people identified in my photos are, does that make sense? How do I identify the people in my new photos without clicking 'find faces'. I know that button searches through my photos to find faces, but it also gets me to the place where I identify the faces as my friends and family, is there a shortcut to get to that place without clicking 'find faces'? That is what I really need, please help!!

  • When syncing iPhone 5s pictures, how can I stop it from backing that album up on my phone?

    When I'm syncing my phone to my laptop, how can I stop it from adding a backup album back to my phone?

    Foxolini wrote:
    I want to delete songs off of my computr because it's taking up unnecessary space, but how can I do this without them being removed from my iPhone when I sync it next?
    As given, removing from the library causes the songs to be removed during sync. So the space taken up is neccessary... What would you do if your iPhone where lost, stolen, damaged or needed to be restored?
    If you ned more room for storage buy a bigger drive. In fact buy two, one to use as a backup for your library and all your other important files.
    tt2

  • How can I stop iPhoto from opening when I turn on my Mac?

    Everytime I turn on my Mac Book, the Iphoto App opens. How can I stop this from happening?

    Remove it from the startup items list.

  • How can I stop safari from auto completing url's on my iphone 4 and ipad2?

    How can I stop safari from auto completing url's on my iphone 4 and ipad2?  On both devices I have cleared history, I have gone into settings-safari-and cleared history and cleared cookies & data, tried turning my devices on and off and I also have private browsing turned on. Both devices are operating on iOS 5.  When I type in a url I don't want anything to show and auto complete.  Any suggestions?

    This indicates corrupt files.
    A restore should resolve.

  • How can i stop firefox from asking "Choose A Network Connection" when i'm offline and using my saved pages

    How can i stop Firefox from asking "Choose A Network Connection" when i'm offline and using my saved pages
    i use Firefox 22.0 on windows 7
    it's about one week that it ask for "Network Connections" when i'm offline and disconnected from the internet even when i don't open a save page and just opening Firefox with a blank page
    Image of the Error:
    http://home.sums.ac.ir/~rowshansh/firefox.png
    http://www.sums.ac.ir/~rowshansh/firefox.png

    Did you check the network setting?
    Sounds that you have set to connect automatically when a connection is not available.
    *http://kb.mozillazine.org/Autoconnect
    *http://kb.mozillazine.org/Browser_attempts_to_connect_when_already_connected

  • How can i stop iTunes from Auto rating my songs??

    How can i stop iTunes from auto rating my songs in my library?? I have my library very organized and 90% of the time when i listen to music i play "My Top Rated" Playlist on shuffle. The only time i give stars ratings to my songs is for my favourite songs which i give 5 star and every other song is just left with no stars. For some reason iTunes is giving songs i have never played or i dont like 5 Stars and rewining my playlists. I have tried erasing all the stars from my entire library and since doing this a week ago, again (for the 4th time in a year) having a library with not 1 song with any star ratings, all of a sudden i now have 329 random songs with 5 stars again??????
    This is really getting to me as i love my music and love iTunes and everything apple but seriously there has to be away to stop this so i can have my old playlists back!
    Thanks hope some one can help

    One reason itunes will start "at regular intervals" will be if you have an iphone that has sync via wifi enabled. I had the problem following an upgrade to iOS 5.

Maybe you are looking for