back to article systemd'oh! DNS lib underscore bug bites everyone's favorite init tool, blanks Netflix

A few Penguinistas spent a weekend working out why they can't get through to Netflix from their Linux machines, because when they tried, their DNS lookups failed. The issue emerged July 22, when Gentoo user Dennis Schridde submitted this bug report to the Systemd project. Essentially, he described a failure within systemd- …

Page:

  1. Anonymous Coward
    Anonymous Coward

    Alternate

    just disable NetworkManager

    hand code resolve.conf with DNS pointing to 8.8.8.8 & 8.8.4.4

    add a manual entry in hosts for Netflix (optional if the above doesn't work)

    1. Anonymous Coward
      Anonymous Coward

      Re: Alternate

      And why would you want to encourage others supply Google with information about every address they resolve? You can choose to be an idiot if you want, but don't recommend it to everyone else as a "fix".

      1. bombastic bob Silver badge
        Facepalm

        Re: Alternate

        OK if you don't want to use the google DNS servers then use your ISP's DNS servers. Whatever.

        at least google doesn't hijack unresolved names...

        /me facepalms at the anal retentivity

        1. eldakka

          Re: Alternate

          Or setup your own recursive DNS server.

          I did this on my NAS, it was actually easier than I expected.

        2. Snorlax Silver badge
          Trollface

          Re: Alternate

          @bombastic bob:"/me facepalms at the anal retentivity"

          Linux users eh? Anal retentivity Is an underlying trait.

          I'm surprised the guy got as few down votes as he did...

        3. joed

          Re: Alternate

          While "hijacking" unresolved names is annoying, it can easily be disabled (and the settings sticks "forever", at least for Comcast). Also, since the DNS queries go in clear, your ISP will know them one way or the other. Might as well use them (unless the ISP is do incompetent that it can't provide well performing DNS) instead of sharing all your browsing habits with yet another party.

      2. Dave Bell

        Re: Alternate

        There are other choices, but who do you trust?

        If I were suggesting a non-ISP address for DNS, I would try to identify the server in human terms as well. Even on The Register one should assume one is being read by humans.

        I infer the suggested fix doesn't care which server is used. In my case I would be working through my ADSL modem/router which provides NAT and DNS for the LAN. In turn, it can either automatically use the ISP server, or an explicitly set server such as the Google one at 8.8.8.8

        1. Jamie Jones Silver badge

          Re: Alternate

          DNS is meant to be a distributed system, and your local resolver should be as close as possible.

          You also don't want to use a server you can't trust to not intentionally send bogus results.

          So, why all these dumb solutions? If you don't want to use a forwarding DNS to your local ISPs server, just roll your own recursive dns. it's virtually configuration free

    2. Drew 11

      Re: Alternate

      8.8.8.8 ?

      Stop giving away all your private information to Google for free!

      1. Anonymous Coward
        Anonymous Coward

        Re: Alternate

        Its not for free, google give you a high performance, high uptime DNS server in exchange.

        Why do some plebs never understand the deals on offer???

      2. Anonymous Coward
        Anonymous Coward

        Re: Alternate

        Stop giving away all your private information to Google for free!

        I dont know where to start.

        As others have noted. You are getting a dns.

        If you dont want to give information to people for free you will have to live in a box. No wait, that wont work , basicly you'll have to kill yourself - and bocome a suicide statistic to be noted down on some govt database. Otherwise everytime you buy a pint of milk you'll be contributing to the secret and evil shopkeepers database of how many people like milk.

        1. Anonymous Coward
          Anonymous Coward

          @AC "have to live in a box"

          Yes, every DNS server you use is able to collect your personal information. Maybe you can't know which ones don't, but you absolutely DO KNOW which company has the most effective data collection and which already has tons of data on you and is always looking for more to correlate on you.

          That's why I'd never use Google's DNS. I'd choose to use one from Microsoft, Amazon, maybe even Facebook, before I'd use Google because they have less personal information about me and it is easier to avoid them being able to correlate my DNS lookups with other personal information they collect on me.

          1. Anonymous Coward
            Anonymous Coward

            Re: @AC "have to live in a box"

            Ironic, as I wrote a paper about data retention after deleting accounts at Microsoft, Google, Facebook and Apple.

            Google were by far the best, followed by apple, thrn Microsoft, and worst of all, Facebook.

            After deleting all those accounts, 7 years later, logging in using a totally anonymous account, Facebook still knows people I might know, based purely on my IPaddress...

            I would seriously question who you trust online. The bad guys might be the least evil of the lot of them.... Perhaps the real bad guys are creating noise and getting a free ride.....

            I use Google DNS, I use it because from my own research, Google were the ONLY one that did exactly what they claimed they did in their privacy policy, and the only one with a privacy policy written in a clear and concise manner for regular human consumption.

            1. Anonymous Coward
              Anonymous Coward

              Re: @AC "have to live in a box"

              > ”Google were the ONLY one that did exactly what they claimed they did ..."

              You sound like a google employee.

              1. Anonymous Coward
                Anonymous Coward

                Re: @AC "have to live in a box"

                I have never worked for Google, nor anyone else you will have heard of. However, you believe what you want to believe, and what fits with what you hope is true...

          2. razorfishsl

            Re: @AC "have to live in a box"

            But only a few are able to cross-reference that against maps and searches.....

          3. dajames

            Re: @AC "have to live in a box"

            That's why I'd never use Google's DNS. I'd choose to use one from Microsoft, Amazon, maybe even Facebook, before I'd use Google because they have less personal information about me and it is easier to avoid them being able to correlate my DNS lookups with other personal information they collect on me.

            If you really believe that, good luck to you!

            I don't believe that any of those companies would hesitate for an instant before gathering, correlating, and monetizing every bit of information about you that they can get their hands on -- indeed, they'd be mad not to, considering that the others do it and it's apparently not illegal.

            At least Google gives me free stuff that is occasionally useful, and for that I forgive them -- just a little -- for ravaging my privacy. The others can go swing.

          4. Lord_Beavis
            Pirate

            Re: @AC "have to live in a box"

            "Yes, every DNS server you use is able to collect your personal information."

            Not to mention ever "Web Designer" seems to be using a WYSIWYG that adds Google feature into their damned web pages (or their hosting solution is doing it). Load No Script and just see how many Google-y references there are as you browse.

        2. Stoneshop
          Holmes

          Re: Alternate

          If you dont want to give information to people for free you will have to live in a box.

          I am strongly disinclined to offer a lot of correlatable information to a single entity, especially one known to try and monetise that information. Better to spread it around, a tidbit here, a snippet there, a fragment somewhere else again.

    3. tony2heads

      Re: Alternate

      Many more are available

    4. Nick Kew

      Re: Alternate

      Those google IPs are just incredibly useful. When your DNS is broken, you have a bootstrap problem.

      Happened to me just on Saturday. I use auto-configure from home, but the (ISP-supplied) router was failing to resolve DNS when it came back up after a power cut. 8.8.8.8 has the virtue of being memorable without having to go online to look it up first!

      1. Swiss Anton
        Trollface

        Re: Alternate

        If you have trouble remembering 8.8.8.8, and you have a thing against Google, just remember it as hate.hate.hate.hate.

    5. Anonymous Coward
      Anonymous Coward

      Re: Alternate

      Or just avoid Systemd.

      1. fidodogbreath

        Re: Alternate

        Or just avoid Systemd.

        I'm amazed that 10 hours elapsed before someone posted this.

    6. Lord_Beavis
      Linux

      Re: Alternate

      "hand code resolve.conf with DNS pointing to 8.8.8.8 & 8.8.4.4"

      Better yet, build your own DNS server and stop supplying Google and/or your ISP with your queries. Make them work for it.

  2. jake Silver badge
    Pint

    I wonder what the excuse will be this time.

    Stockpiling beer & peanuts.

    1. ThomH

      Re: I wonder what the excuse will be this time.

      I searched and discovered that per its authors: "[i]n contrast to the glibc internal resolver systemd-resolved is aware of multi-homed system, and keeps DNS server and caches separate and per-interface". So the justification for a new resolver was machines with multiple active interfaces, that possibly go to different networks.

      The justification for bundling that new resolver with the init system? No idea. For distributions switching to it despite it not functioning very well? Clueless.

  3. eldakka
    Flame

    Why the fuck is the init process being used as a DNS resolver?

    Fuck I hate systemd.

    1. really_adf

      Why the fuck is the init process being used as a DNS resolver?

      Fuck I hate systemd.

      Why the fuck do you think it is the init process that is the DNS resolver?

      Fuck I hate the fact so many people repeat this nonsense.

      Even more than I hate systemd. And that's saying something.

      (Here's that separate process.)

      1. John Robson Silver badge

        Separate file maybe...

        "This file is part of systemd."

        Even if systemd is spawning another of its own processes, it's still systems which is doing the resolving. Just get my system running, and log errors....

        That's all I need you to do...

        1. really_adf

          Even if systemd is spawning another of its own processes, it's still systems which is doing the resolving. Just get my system running, and log errors....

          Agreed, and that (along with Lee D's comments, especially destroying loose coupling) is one of many reasons I detest systemd.

          But the apparently common misconceptions about how systemd works must be avoided else you look just as stupid as many of the systemd evangelists.

          The (predictable) downvotes to my previous comment, ironically, illustrate the exact reason for making that comment in the first place.

    2. rtfazeberdee

      @eldakka - spend some time learning about systemd because your post demonstrates your total ignorance of it to the world.

      1. Lee D Silver badge

        Because it's not systemd, it's PoetteringOS.

        Rather than have a clearly defined system that relies on others, it chooses to just replace everything from login authentication to DNS lookup with broken implementations that can't handle underscores, or usernames that start with a digit (Hey, just "don't do that"!), and then gives away root or stops the DNS resolution entirely when there's a problem because it lacks any kind of designed failure path despite being a system critical service.

        You do things the systemd way or not at all, don't you understand? I mean what kind of loser is going to run a critical Red Hat server that can't afford to give away root access or have its DNS resolution stop for no easily-discernible reason? God, anyone would think it was a server OS backed by a major company specialising in selling server OS, certifications on best practices, and commercial services.

        This is feature creep of the HIGHEST ORDER, from "I'll fix init dependencies" to "what do you mean you don't want every DNS lookup going through root-owned code via the init processes?"

        SystemD evangelists, please just sit down and think for a moment. Put the prejudices and your personal experience aside and just think. Why do you need a "systemd" DNS resolver? You don't. You can have it start up the resolver of choice of the user and use that instead. If it can't manage that, and get the order right so that when it needs to map network drives, etc. the DNS resolver is ready, then what happened to systemd's original purpose?

        He's reinventing the wheel, again, badly, to solve a problem that shouldn't exist if his software did what was promised in the first place. "When things are hard to do using existing and mature software, write your own things to replace them, badly, just enough to do what you needed to do and then sod everyone else, Jack". It's the epitome of childish coding, and yet we still tolerate it.

        1. handleoclast
          Devil

          Re: PoetteringOS

          @Lee D

          I agree that systemd is suffering extreme creature feep to the point that it's almost an OS. But PoetteringOS is such an ungainly name for it. Perhaps we could shorten it somehow.

          How about...

          POS

          1. Lee D Silver badge

            Re: PoetteringOS

            Have an upvote.

    3. Anonymous Coward
      Anonymous Coward

      Systemd is not (just) an init system. That was just the story that was told to get their foot in the door during a time of init-system transition.

      Once that thin end of the systemd wedge had been inserted into almost every Linux distro, they have been able to hammer in that wedge ever deeper using non-stable interfaces to force close coupling of otherwise unrelated services.

      1. Daggerchild Silver badge

        Systemd is extremely useful!

        I think everyone is completely misunderstanding how useful systemd is.

        Everyone who doesn't want to look to the past, and who believe in following leaders with strong personalities and innovative legacy-discarding ideas, can all band together and sail off to create a new future.

        Leaving everyone who actually gives a sh*t about good engineering in peace, while their ship catches fire, runs aground, and establishes some kind of Lord of the Flies cannibal tribe.

        Put systemd in your interview questions for new hires, and leave the true-believers free to go innovate someone else into the ground.

        1. a_a

          Re: Systemd is extremely useful!

          That was far too subtle for most commentards.

          1. oldcoder

            Re: Systemd is extremely useful!

            In very simple environments, it works fairly well.

            But it sucks when you need to add a new service...

            People

            * keep having to add sleep times before they start...

            * keep trying to get the service started

            * resort to even using cron to start them via @boot

            * still lose log data

            * still have to put up with boot/shutdown hanging... sometimes

            But in a simple environment... it isn't too bad. Last time I checked though, Slackware still booted faster.

        2. nijam Silver badge

          Re: Systemd is extremely useful!

          > I think everyone is completely misunderstanding how useful systemd is.

          Well, the systemd supporters certainly are.

      2. fidodogbreath

        Systemd is not (just) an init system. That was just the story that was told to get their foot in the door during a time of init-system transition.

        Sounds like an NSA / GCHQ / Five Eyes operation.

        Hmmmmm....

  4. Nate Amsden

    underscore illegal dns character

    I believe anyway. I have been a debian user since 2.0 hamm back in 98 and am strongly considering moving to the deuvian. I have had about 10 minutes exposure to systemd on a recent debian release (installed maybe 4 months ago whatever the version was at the time I am not at the system ), and wasn't impressed (at the end of the day it comes down for me it wasn't broken so don't fix it).

    My main "home" servers(hosted at a colo) are debian 7 still, so no systemd, my laptops are linux mint 17(MATE) which has no systemd. My work linux boxes all 1000 of em also lack systemd for the moment anyway.

    I can certainly see some use cases for a systemd approach on desktops and laptops hot plugging and shit. But the negatives outweigh the positives as someone who has run linux on my desktops and laptops since 1997.

    I don't mind giving people choice but it seems the choices are rapidly dwindling, which is quite sad.

    some folks have fled to BSD. I like the BSD kernels but have never liked the userland stuff(openbsd is still my home firewall of choice).

    I have been able to just ignore systemd for a long time but that time is running out.

    Same goes for some shit about replacing ifconfig?? Been reading about that recently, again have yet to run into it, another case of it was working fine for me for the past 21 years don't see a need to change it.

    Other than driver updates with newer hardware linux on my systems has been "good enough" for a decade already.

    Maybe I am too old. Or perhaps a case of the hipster agile devops shit going too far.

    Or maybe a bit of both.

    1. Nate Amsden

      Re: underscore illegal dns character

      Can't edit on mobile. But wanted to add a perhaps obvious tidbit. With exception of a brief time with debian 3.0 back in 2001 or 2002, where i ran "testing", every other system before and since has been "stable"

      1. John Hughes

        Re: underscore illegal dns character

        Oh, by the way, Debian doesn't use systemd-resolved, so this bug won't affect you.

        Unless you're using something else that uses the libidn2 library (whis is not part of systemd).

    2. iTheHuman

      Re: underscore illegal dns character

      Mmmmmm yup. 10min. Not impressed. Move to devuan.

      Hopefully you never change software unless it's for bug fixes, because, if it ain't broke.

      1. bombastic bob Silver badge
        Linux

        Re: underscore illegal dns character

        "Hopefully you never change software unless it's for bug fixes, because, if it ain't broke."

        that's actually a BETTER philosophy, in my view. I prefer stability to a moving target on the bleeding edge.

        Devuan DOES sound very very good to me.

      2. Dave Bell

        Re: underscore illegal dns character

        There has been a recent significant bug fix for systemd but this may be a later version.

    3. Anonymous Coward
      Anonymous Coward

      Re: underscore illegal dns character

      I'm in the process of updating my personal server with Debian 9 and I'm all like what the fuck is this fuckwittery.

      No mysql without pissing about, no eth0 now it uses another name.

      Can't restart networking without pissing about.

      Fuckwits the lot of them.

      1. handleoclast

        Re: eth0

        @AC

        The change to the names of network interfaces isn't a Poetteringerism but something from Dell. They sorta have a point. OS names like eth0, eth1 don't give any clue as to which physical connector they relate to. So Dell came up with a naming scheme that would let some guy in a data centre receive a call saying that enp0s3 looks like it's become unplugged and [s]he knows which physical connector to give a tug.

        Dunno about your distro, but on CentOS/RHEL it is possible to set flags (yes, several places because Poetteringerisms abound) that revert to the old naming scheme.

        1. Anonymous Coward
          Anonymous Coward

          Re: eth0

          @handleocast

          Thanks, That explains it then.

          To be fair it's pretty fucking useless when I have two adaptors using the same rtl8111 chipset, so rather than eth0/1 I now have enp3/4so

Page:

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like