Results 1 to 4 of 4

Thread: resolv.conf is reset

  1. #1
    chris_s is offline Junior Member
    Join Date
    Aug 2006
    Posts
    5
    Rep Power
    9

    Default resolv.conf is reset

    I have installed zimbra on fedora core 4 and I followed the instructions here and everything was fine while setting up, BUT when I reboot the box the /etc/resolv.conf file is reset.

    The file looks like this:
    ;generated by /sbin/dhclient-script
    search mydomain.com
    nameserver x.x.x.x
    nameserver y.y.y.y

    The first line is dubious to say the least.

    I have thought of 3 solutions and would like input on which is best or possibly someone could propose another.

    1. Uninstall dhcclient
    2. chmod the file unwriteable
    3. some unknown(to me) configuration panel that is overriding my manual edits
    4. ignore it


    As far as #3 goes I went to System Settings > Network and changed the entries there, saved the settings and restarted named and the network but the file is still rewriten on boot. Thanks in advance.

  2. #2
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    hi, change your network setup to a static ip address. currently you have an interface that gets its details through dhcp which is overwriting resolv.conf.

    1. just make the interface static
    2. chmoding the file won't help as the dhcp client i presume runs as root!
    3. unlikely, network interface setup it pretty fundamental setting
    4. don't ignore it!

  3. #3
    chris_s is offline Junior Member
    Join Date
    Aug 2006
    Posts
    5
    Rep Power
    9

    Default

    Quote Originally Posted by dijichi2
    hi, change your network setup to a static ip address
    I was hoping you would not say that
    When I change the interface to static I lose access to internet. i used ifconfig to get the IP I used in setup and also for the subnet mask. And guessed for the default gateway

    Is there any way to figure out what default gateway dhcp assigns?

    Would there be any reason to be blocked for not querying the DHCP client before conecting? or am I more likely putting in the address wrong?

  4. #4
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    is this a home box getting dhcp response from router? or in a corporate lan?

    if former, the router should have a reserved range for dynamic addresses - pick one outside of this range, or if yours is the only computer then just use the same ip or pick one at random from the same subnet. if it's in a corporate lan, DO NOT DO THIS!! get a real ip from the network manager.

    you can get the gateway address by doing:

    netstat -nr

    the gateway will be the second field of the line that starts 0.0.0.0. if you're doing this by hand (sounds like you are if you're using ifconfig), you can set this by doing:

    route add default gateway

    you won't be blocked for not querying dhcp.

    i've haven't used fedora for years but you should be able to set the networking more permanently by editing scripts in /etc/sysconfig/network-scripts (and /etc/sysconfig/network) - /etc/sysconfig/network-scripts/ifcfg-eth0 if memory serves.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] After reset of sync data, no longer able to sync
    By rojs in forum CalDAV / CardDAV / iSync
    Replies: 10
    Last Post: 06-14-2007, 04:30 PM
  2. problem : connection reset
    By majodo in forum Developers
    Replies: 1
    Last Post: 05-04-2007, 02:02 AM
  3. Reset Message Count
    By bhickey in forum Administrators
    Replies: 3
    Last Post: 03-13-2007, 09:23 AM
  4. Clock reset - emails missing...
    By madcat in forum Administrators
    Replies: 5
    Last Post: 02-20-2007, 09:03 PM
  5. Reset Disk Statistik
    By Achim.Theobald in forum Administrators
    Replies: 1
    Last Post: 07-13-2006, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •