Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    /etc/resolv.conf broken link - dns broken

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    4 Posts 3 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stompro
      last edited by

      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

      Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          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.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • S
            stompro
            last edited by

            @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

            Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.