Coder Social home page Coder Social logo

Comments (3)

trumant avatar trumant commented on July 30, 2024

@williamoneill - Nice catch! I'll have a fix PRed in a bit.

from ansible-consul.

MrMMorris avatar MrMMorris commented on July 30, 2024

@williamoneill what were you setting client_addr to that made dnsmasq not work? I have noticed that when I set it to 0.0.0.0 and dnsmasq is also set to that, dns lookups are broken until I set dnsmasq to 127.0.0.1

from ansible-consul.

MrMMorris avatar MrMMorris commented on July 30, 2024

After some testing, I can't even get my consul to work without setting client_addr to 0.0.0.0 and dns doesn't work in that instance unless the dnsmasq ip is 127.0.0.1.

@williamoneill not sure what your setup is like, but it seems that we should check if client_addr is 0.0.0.0 and if so, keep the dnsmasq ip as 127.0.0.1.

I also have a dns test, but I'm not sure if it would apply to all cases:

- name: check dns
  command: dig {{ consul_node_name }}.node.consul
  register: dns_test
  notify:
    - test dns

- name: test dns
  fail: msg="Consul DNS not resolving properly"
  when: "'{{ ansible_eth0.ipv4.address }}' not in dns_test.stdout"

from ansible-consul.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.