Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"dnsServers" and "dnsSearchDomains" not updating dns #249

Closed
kyriesent opened this issue Nov 5, 2015 · 2 comments
Closed

"dnsServers" and "dnsSearchDomains" not updating dns #249

kyriesent opened this issue Nov 5, 2015 · 2 comments

Comments

@kyriesent
Copy link

Hi,

I'm trying to get my containers to run against a custom dns server, but it doesn't seem to be working.

I've looked over the conf a bunch of times and it doesn't seem to be working correctly.

I've included my Dockerrun.aws.json for reference.

{
  "AWSEBDockerrunVersion": 2,
  "containerDefinitions": [
    {
      "name": "skills_map",
      "image": "seelio/skills-map:34716a798e9c51392995525ca1f54d7274b65dc5",
      "dnsServers": [
        "11.0.0.71",
        "8.8.8.8"
      ],
      "dnsSearchDomains": [
        "service.consul"
      ],
      "memory": 128,
      "essential": true
    },
    {
      "name": "skills_map_web_ui",
      "image": "seelio/skills-map-web-ui:34716a798e9c51392995525ca1f54d7274b65dc5",
      "dnsServers": [
        "11.0.0.71",
        "8.8.8.8"
      ],
      "dnsSearchDomains": [
        "service.consul"
      ],
      "memory": 128,
      "essential": true
    }
  ]
}

Running docker inspect on the resulting container says that there are no Dns or DnsSearch options set, and this is what's in /etc/resolv.conf

; generated by /sbin/dhclient-script
search ec2.internal
nameserver 11.0.0.2

Thanks!

@sebest
Copy link

sebest commented Nov 16, 2015

I can confirm that this feature does not seem to work with agent version 1.6 on Elasticbeanstalk with the latest image.

@samuelkarp
Copy link
Contributor

@kyriesent @sebest My colleagues have informed me that dnsServers and dnsSearchDomains should work with AWS Elastic Beanstalk now.

edibble21 pushed a commit to edibble21/amazon-ecs-agent that referenced this issue Jul 9, 2021
Merge master back to dev after 1.28.0 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants