Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

dnsmasq search configuration #1377

Closed
ryane opened this issue Apr 22, 2016 · 4 comments
Closed

dnsmasq search configuration #1377

ryane opened this issue Apr 22, 2016 · 4 comments
Labels
Milestone

Comments

@ryane
Copy link
Contributor

ryane commented Apr 22, 2016

  • Ansible version (ansible --version): n/a
  • Python version (python --version): n/a
  • Git commit hash or branch: master
  • Cloud Environment: aws
  • Terraform version (terraform version): n/a

The dnsmasq configuration needs to be updated so that search paths are properly respected. See #1367 for a detailed discussion.

@ryane ryane added the bug label Apr 22, 2016
@ryane ryane added this to the 1.1 milestone Apr 22, 2016
@stevendborrelli
Copy link
Contributor

With #1367 closed, what needs to be done for this issue?

@ryane
Copy link
Contributor Author

ryane commented May 4, 2016

we need a new mantl-dns package that fixes the search config. The manual fix @BrianHicks figured out was to use the --domain='#'` option and consolidate /etc/resolv.conf.masq and /etc/resolv.conf.mantl-dns into a single file. I realized we don't have an issue open in the packing repo so I just created mantl/mantl-packaging#84

@ryane
Copy link
Contributor Author

ryane commented May 12, 2016

pending mantl/mantl-packaging#89

@ryane
Copy link
Contributor Author

ryane commented May 12, 2016

mantl/mantl-packaging#89 is merged and seems to fix the problem:

gce

$ cat /etc/resolv.conf
# this config installed by mantl-dns

# search is added here so that the system can address nodes by their simplest
# name (x.node.consul becomes x.node or simply x.) This will work for service
# addressing as well, so you can use y.service instead of y.service.consul
options ndots:2
search node.consul consul c.asteris-mi.internal. google.internal. c.asteris-mi.internal

aws

$ cat /etc/resolv.conf
# this config installed by mantl-dns

# search is added here so that the system can address nodes by their simplest
# name (x.node.consul becomes x.node or simply x.) This will work for service
# addressing as well, so you can use y.service instead of y.service.consul
options ndots:2
search node.consul consul ec2.internal

@ryane ryane closed this as completed May 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants