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

    Corrupted entries in hosts file?

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    7 Posts 3 Posters 2.0k 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.
    • D
      danswartz
      last edited by

      Twice now I've seen complaints in the log about hosts entries (sorry, I don't remember what the specific message was).  When I looked at /var/etc/hosts on the gateway, I saw the problem.  (hypothetical example here) If I was supposed to have:

      
      10.0.0.98       tivo-fr.xxx.com10.0.0.222      Denise.xxx.com xxx# dynamic entry from dhcpd.leases
      
      

      when it should be:

      
      10.0.0.98       tivo-fr.xxx.com
      10.0.0.222      Denise.xxx.com Denise                # dynamic entry from dhcpd.leases
      
      

      Not sure if this is being caused by dnsmasq or not?  If so, the devs can't really do anything about it, I suspect.  Just wanted to mention it.

      1 Reply Last reply Reply Quote 0
      • L
        littlejohn
        last edited by

        I have the same problem. As of 2.0-BETA4 (amd64) built on Wed Oct 27 20:32:14 UTC 2010, this has not been fixed.

        Any idea which file(s) I should look at?

        Regards,
        John

        1 Reply Last reply Reply Quote 0
        • D
          danswartz
          last edited by

          No idea, sorry :(

          1 Reply Last reply Reply Quote 0
          • L
            littlejohn
            last edited by

            Using your example:

            
            10.0.0.98       tivo-fr.xxx.com
            10.0.0.99       gertrude.xxx.com Gertrude
            10.0.0.222      Denise.xxx.com Denise                # dynamic entry from dhcpd.leases
            
            

            my /etc/hosts looks more like

            
            10.0.0.98       tivo-fr.xxx.com
            10.0.0.9910.0.0.222      Denise.xxx.com xxx# dynamic entry from dhcpd.leases
            
            

            It's actually clipping at the first \t (tab), and the last static entry (gertrude) isn't mapped.

            Regards,
            John

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

              Test newer snapshots.

              1 Reply Last reply Reply Quote 0
              • L
                littlejohn
                last edited by

                Hello Ermal,

                you mean newer than 20101027? I'll wait until I can test daily snapshots in a VM, I got properly spanked last Friday with the latest kernel issues :-)

                Unless this has been fixed in the last few days, I'll have a proper look tomorrow. Any idea as to which scripts / files are involved with pushing the dynamic dhcp leases to /etc/hosts ? Any pointers would be appreciated!

                Regards,
                John

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

                  Kernel issues regarding panics are solved.
                  As far as the scripts/programs involved you can check commits.

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