FedoraForum.org

FedoraForum.org (https://forums.fedoraforum.org/index.php)
-   Using Fedora (https://forums.fedoraforum.org/forumdisplay.php?f=7)
-   -   open handles on a file? (https://forums.fedoraforum.org/showthread.php?t=141362)

capo 14th December 2006 02:29 AM

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

nameserver 192.168.1.1

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?

RupertPupkin 14th December 2006 07:50 AM

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.

capo 18th December 2006 08:00 AM

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 192.168.1.1 (my priavte ip) to be the first nameserver for some reason.

capo 27th December 2006 07:55 AM

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


All times are GMT +1. The time now is 05:51 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.