Skip to content

Google's DNS name cannot be used as default Nameservers #360

Closed

Description

@adarshaj

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug

What happened:
Google's DNS domain names won't resolve if there is no entries in /etc/resolv.conf
Relevant lines of code here
What you expected to happen:
Google's DNS must work for resolving, so it should be using IP addresses.
How to reproduce it (as minimally and precisely as possible):
Haven't tested it.

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): all
  • Cloud provider or hardware configuration**: any
  • Install tools: N/A
  • Others: N/A

Activity

  1. added
    kind/bug
    on Feb 27, 2018
  2. ahmetb commented on Feb 27, 2018

    @ahmetb

    I'm curious if there could be any reasons why cert-manager doesn't hardcode 8.8.8.8 and 8.8.4.4.

  3. ahmetb commented on Feb 27, 2018

    @ahmetb

    Similarly I'm curious if cert-manager should use a multi-step resolution logic like this:

    1. Try to resolve using kube-dns --> success: return; fail: step 2
    2. Try to resolve using google-public-dns-a.google.com:53 (and -b) ---> success: return; fail: step 3
    3. Try to resolve using 8.8.8.8:53 (and 8.8.4.4:53) ---> success: return; fail: call it "failed"
  4. whereisaaron commented on Feb 28, 2018

    @whereisaaron
    Contributor

    k8s is adding per-Pod DNS controls for name servers, which is the right way to handle this I think? So we don't need sophisticated solutions right now, if kube-dns or fixed IP defaults will work.

  5. ahmetb commented on Feb 28, 2018

    @ahmetb

    @whereisaaron I'm not sure how per-Pod DNS is related. I think the DNS check of cert-manager should just try a few methods, ordered from cheaper/less-complex to expensive/more-complex. It should be trivial to implement.

  6. whereisaaron commented on Feb 28, 2018

    @whereisaaron
    Contributor

    With the dnsConfig option you'll be able to specify custom resolve.conf settings for cert-manger to use, that you can optionally combine with dnsPolicy strategies. I was thinking that would be sufficient? But maybe there are there more complex use cases @ahmetb?

  7. added a commit that references this issue on Mar 1, 2018
    09fbbb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions