/etc/resolv.conf broken link - dns broken



  • Hello,
      I just downloaded and installed 2.0-Beta2 Mon May 17 22:12:59 EDT 2010 Freebsd 8.0-Stable Nanobsd, and ran into the problem that the symbolic link for /etc/resolv.conf was broken, it wasn't pointing to anything.

    After I mounted rw and pointed it to /var/etc/resolv.conf everything works fine.

    Can someone tell me where the code that creates the link for resolv.conf is located?  I would like to look into the problem a little more, but I'm not sure where to look.

    Would it be a good idea to have some code to sanity check that link at some point also, in case the problem was caused by an unclean shutdown or something along those lines.
    Josh



  • Nothing creates that link afaik.
    Its there since the builder. Check system.inc search for resolvconf


  • Rebel Alliance Developer Netgate

    What type of WAN do you have? Or do you only have DNS which you configured by hand?

    I've got a 2.0 NanoBSD VM running that same snapshot and I have the symlink. I have DHCP for WAN, though.



  • @jimp:

    What type of WAN do you have? Or do you only have DNS which you configured by hand?

    I've got a 2.0 NanoBSD VM running that same snapshot and I have the symlink. I have DHCP for WAN, though.

    I think this must be related to me powercycling my test box during the startup process.  My serial connection was borked, so I just hit the power button to see if that would fix it.

    I was using DHCP for wan, and when I looked under /var/etc/ the correct files and data was there, but /etc/resolv.conf wasn't pointing to anything, so there was no local dns resolution, or for any of the clients via dnsmasq.

    I will try reinstalling and see if it happens again. 
    Josh


Locked