FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006

    open handles on a file?

    Hi, i am tyring to get my broadband working under linux, now i can make a ppoe connection fine from my modem and use the internet, i can also do so fine from my linux pc, BUT something is overwriting the file /etc/resolv.conf with just


    which is my private ip, every 5 seconds

    as in when i first connect it has the proper nameserver and the internet works fine for 5 seconds, the some process overwrite resolv.conf and no dns, if i changfe it back manualy it gets overwritten again, every 5 seconds, so is there any command that can list all processes with an open handle on a file, so i can fix this?

  2. #2
    Join Date
    Nov 2006
    Quote Originally Posted by capo
    is there any command that can list all processes with an open handle on a file, so i can fix this?
    lsof can do that. It comes with FC6.

  3. #3
    Join Date
    Mar 2006
    well while lsof i could not find any process acessing the file but it is definatly happening, anywya i maniged to fix it by changin the order of nameservers in resolv.conf odd, but i think something, perhaps pppoe wanted (my priavte ip) to be the first nameserver for some reason.

  4. #4
    Join Date
    Mar 2006
    Ok well that for some reason worked till i reset, but then stopped working, the solution was to reconfigure DNSMASQ which i was using mostly fot a DHCP server, to correctly update resolv.conf

Similar Threads

  1. GTK Open File Dialog crashes when folder contains PHP file
    By theresonant in forum Using Fedora
    Replies: 0
    Last Post: 7th October 2009, 09:11 AM
  2. Replies: 4
    Last Post: 2nd September 2005, 06:03 AM
  3. Why FC3 handles fan so well?
    By Mantronic in forum Hardware & Laptops
    Replies: 4
    Last Post: 22nd December 2004, 11:13 PM

Tags for this Thread

Posting Permissions

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