Find the answer to your Linux question:
Results 1 to 4 of 4
I am running openSUSE 11.4 (Xfce) on my Dell Inspiron 6400. I had dnsmasq working fine on 11.3 (only as caching nameserver, no DHCP). I used an external file /etc/my.resolv.conf ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Location
    near Berea, Kentucky (in a tipi)
    Posts
    47

    dnsmasq can't read file


    I am running openSUSE 11.4 (Xfce) on my Dell Inspiron 6400.

    I had dnsmasq working fine on 11.3 (only as caching nameserver, no DHCP). I used an external file /etc/my.resolv.conf to point it to the google nameservers (since /etc/resolv.conf gets overwritten by DHCP).

    After I upgraded to 11.4 I copied the .conf files from backup. So far I haven't been able to get dnsmasq to work as it did before. In /var/log/messages I get


    Code:
    dnsmasq[1369]: failed to read /etc/my.resolv.conf: Permission denied

    Code:
    ls -l /etc/my.resolv.conf 
    -rw-r--r-- 1 root root 142 Apr 12 13:16 /etc/my.resolv.conf
    I've tried chowning to dnsmasq (user as which dnsmasq runs), even setting permissions really loose (just as an experiment). No changes.

    Will post /etc/dnsmasq.conf if you believe that would help, but obviously it is pointing to /etc/my.resolv.conf (and it's lengthy)

    I have seen bugs like this described, but so far as I can tell they are (believed to be) fixed.

    Any ideas?

    Thanks,
    Daniel

  2. #2
    Just Joined!
    Join Date
    May 2012
    Posts
    2

    Code:
    dnsmasq[1369]: failed to read /etc/my.resolv.conf: Permission denied

    Any ideas?

    Thanks,
    Daniel
    goto Yast
    start "apparmor control panel"
    "set profiles modes" click [configure]
    set dnsmasq mode to "complain"
    click [done] and [done]

    and your dnsmasq works as before

    A.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Location
    near Berea, Kentucky (in a tipi)
    Posts
    47
    Thanks!

    I collect you have made some progress in understanding apparmor, which obviously I haven't (I never even thought of it).

    It is exactly as you say, dnsmasq no longer complains about being unable to read its conf.

    Doesn't quite work, but at least now I can proceed to debug that.

  4. #4
    Just Joined!
    Join Date
    May 2012
    Posts
    2
    Quote Originally Posted by polypagan View Post
    Thanks!

    I collect you have made some progress in understanding apparmor, which obviously I haven't (I never even thought of it).

    It is exactly as you say, dnsmasq no longer complains about being unable to read its conf.

    Doesn't quite work, but at least now I can proceed to debug that.
    I was fighting the problem for some time already and just as you, i got stuck, till some other forum was discussing SMB and NMB problems, and they referred to apparmor, opening apparmor i saw to my joy the dnsmasq entry, i switched it and finally i could get a logfile and do other things that i was used to do before

    good luck with the rest of your quest to fine-tune dnsmasq

    A.

Posting Permissions

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