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

    Avahi with dynamic IPv6 gives counting hostname-N

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 2 Posters 2.3k 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.
    • G
      got0
      last edited by

      Avahi has an issue with IPv6 temporary addresses (e.g. IPv6 with privacy extension). Whenever a host changes one of its IPv6, avahi detects a hostname conflict and has a chance to lose its fight against an actually non-existing other host. Then, the avahi changes the hostname to hostname-2, incrementing the number with each conflict lost. Google gives some hits on this, e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780981

      As a workaround for me, I disabled IPv6 for avahi on pfsense (and all my linux hosts. OSX seems have fixed the same symptoms with 10.10 again). The WUI switch relates to use-ipv6=no and disables avahi's IPv6 socket. However, avahi still publishes IPv6 addresses on its IPv4 socket. To get avahi completely IPv4-only, I set in avahi-daemon.conf (on all hosts) to the following:

      use-ipv4=yes
      use-ipv6=no
      publish-aaaa-on-ipv4=NO  <==

      Since then, avahi works nicely and my hostnames are stable. May I ask to make this option configurable on the WUI as well?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @got0:

        However, avahi still publishes IPv6 addresses on its IPv4 socket.

        And the issue with that is exactly what? That's upstream default.

        1 Reply Last reply Reply Quote 0
        • G
          got0
          last edited by

          With aaaa over IPv6, I have "counting" hostnames, if I make use of temporary IPv6. Without aaaa over IPv6, the hostnames remain stable.

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            What I'm asking is what issues are you having with the publish-aaaa-on-ipv4 thing?

            1 Reply Last reply Reply Quote 0
            • G
              got0
              last edited by

              It seems to me that avahi has an issue with changing IPv6 addresses, regardless of whether it gets notified of the hostname-IPv6 info via IPv6 socket or IPv4 socket.

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Do you have enough options there?  ::) https://github.com/pfsense/pfsense-packages/pull/1030

                1 Reply Last reply Reply Quote 0
                • G
                  got0
                  last edited by

                  that's perfect, many thanks

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