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

    Dnsmasq problem?

    Scheduled Pinned Locked Moved DHCP and DNS
    11 Posts 3 Posters 4.5k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      It could also be that some character in "company name" that is not valid in a hostname. Without seeing the actual text it's difficult to speculate.

      Usually in those cases I use <name>.local or .localdomain rather than ending it with the actual company name.</name>

      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
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        ^ I agree I would not suggest using a company name as the tld.

        I like <name>.lan myself - but sure .local or .localdomain are commonly used tld used when its not a public resolvable domain name.

        I find that line of text of your error in dhcp.c of dnsmasq

        
        if (strcmp(dot+1, suffix) != 0)
        				syslog(LOG_WARNING, 
        				       "Ignoring DHCP lease for %s because it has an illegal domain part", hostname);
        
        

        it would be very helpful to know what your setting exactly.  Are you saying non nix boxes are in this same .companyname tld ?  And they work ok?  Or is the nix box in a different domain than your other boxes are using?</name>

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • M
          mcampbell
          last edited by

          OK, the full domain name I'm using is office.emediatrade.  It is the only domain in our office.  Yes, Windows boxes are working fine in this domain.  I do have other *nix boxes in this environment, but this is the only one using dhcp.  This is the only machine giving this error in the logs.

          I also want to point out that the machine itself doesn't have any visible problems connecting to the network or anything else.  This error just pops up in the log.  I would ignore it, but I'm trying to set up remote logging, and these errors are fast taking up a large chunk of the logs, hence why I'd like to resolve its problem.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            do you have the . on the end??  Or was that just the period on the end of your sentence?

            I can try and duplicate your issue, can you post your nix box config where you set his domain on the box?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • M
              mcampbell
              last edited by

              Period at the end of my sentence.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                see my edit - can you post up your nix box config

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • M
                  mcampbell
                  last edited by

                  This is a centos box, btw.

                  /etc/hosts:

                  127.0.0.1       localhost.localdomain   localhost
                  ::1     emtdevlapnix01.office.emediatrade       emtdevlapnix01  localhost6.localdomain6 localhost6
                  

                  /etc/sysconfig/network:

                  NETWORKING=yes
                  HOSTNAME=emtdevlapnix01.office.emediatrade
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • M
                    mcampbell
                    last edited by

                    After thinking about this, something just occurred to me–do you think it could be trying to treat the whole host/domain as the hostname?  That would make the hostname too long, wouldn't it?  Would it be worth trying to remove the domain from the hostname values?

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      so curious why you set your ipv6 loopback to your fqdn, but leave ipv4 127.0.0.1 at just localhost?

                      I can fire up my centos vm and try and duplicate your error now.

                      From my reading in centos the hostname in that file should be your fqdn.  So I don't see that is too long.

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • M
                        mcampbell
                        last edited by

                        I didn't set it up that way.  Either CentOS did, or the guy using this machine did.  We don't use ipv6 in our network right now anyway.

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