Hi, we recently upgraded from localstack-pro `v2.2...
# general
b
Hi, we recently upgraded from localstack-pro
v2.2.0
to
v3.0.0
and we have some trouble with the DNS settings in our devcontainer. In our
docker-compose
we set these envs for DNS configuration:
Copy code
DNS_LOCAL_NAME_PATTERNS: "^((?!(prod|staging)).)*((s3|lambda)\\.(amazonaws\\.com))|.*(localhost\\.localstack\\.cloud|(cloudfront\\.net))"
      DNS_RESOLVE_IP: 10.0.1.11
In the startup of the container we can see, that the DNS server is correctly configured and started and after that more DNS settings are added to the server and I'm not sure where those come from or how I can disable them. This leads to problems for our CLI that wants to connect to AWS to login via oidc. Anyone knows where I can adjust these settings? The problems exist after
v2.3.0
and I suspect that it has to do with this PR (but not sure): https://github.com/localstack/localstack/pull/9049 Startup logs:
Copy code
2023-11-24 13:22:03 2023-11-24T12:22:03.659 DEBUG --- [  MainThread] localstack.dns.server      : Determined fallback dns: 127.0.0.11
2023-11-24 13:22:03 2023-11-24T12:22:03.660 DEBUG --- [  MainThread] localstack.dns.server      : Starting DNS servers (tcp/udp port 53 on 0.0.0.0)...
2023-11-24 13:22:03 2023-11-24T12:22:03.660 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*localhost.localstack.cloud pointing to LocalStack
2023-11-24 13:22:03 2023-11-24T12:22:03.660 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*localhost.localstack.cloud with record DynamicRecord(record_type=<RecordType.A: 1>, record_id=None)
2023-11-24 13:22:03 2023-11-24T12:22:03.661 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*localhost pointing to LocalStack
2023-11-24 13:22:03 2023-11-24T12:22:03.661 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*localhost with record DynamicRecord(record_type=<RecordType.A: 1>, record_id=None)
2023-11-24 13:22:03 2023-11-24T12:22:03.661 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern ^((?!(prod|staging)).)*((s3|lambda)\.(amazonaws\.com))|.*(localhost\.localstack\.cloud|(cloudfront\.net))
2023-11-24 13:22:03 2023-11-24T12:22:03.664 DEBUG --- [-functhread1] localstack.dns.server      : DNS Server started
2023-11-24 13:22:03 2023-11-24T12:22:03.696 DEBUG --- [  MainThread] localstack.dns.server      : DNS server startup finished.
2023-11-24 13:22:03 2023-11-24T12:22:03.712  INFO --- [  MainThread] l.bootstrap.licensingv2    : Successfully activated cached license 7nx...:pro from /var/lib/localstack/cache/license.json 🔑✅
2023-11-24 13:22:05 2023-11-24T12:22:05.286 DEBUG --- [  MainThread] localstack.runtime.init    : Init scripts discovered: {BOOT: [], START: [], READY: [Script(path='/etc/localstack/init/ready.d/init-localstack.sh', stage=READY, state=UNKNOWN)], SHUTDOWN: []}
2023-11-24 13:22:05 2023-11-24T12:22:05.286 DEBUG --- [  MainThread] localstack.plugins         : Checking for the usage of deprecated community features and configs...
2023-11-24 13:22:05 2023-11-24T12:22:05.287 DEBUG --- [  MainThread] localstack.dns.server      : Overwriting container DNS server to point to localhost
2023-11-24 13:22:05 2023-11-24T12:22:05.898 DEBUG --- [  MainThread] l.services.iam.router      : Adding IAM policy generation routes...
2023-11-24 13:22:05 2023-11-24T12:22:05.903 DEBUG --- [  MainThread] localstack_ext.plugins     : setting up transparent endpoint injection
2023-11-24 13:22:05 2023-11-24T12:22:05.904 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*.<http://amazonaws.com|amazonaws.com> pointing to LocalStack
2023-11-24 13:22:05 2023-11-24T12:22:05.904 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*.<http://amazonaws.com|amazonaws.com> with record DynamicRecord(record_type=<RecordType.A: 1>, record_id=None)
2023-11-24 13:22:05 2023-11-24T12:22:05.904 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*<http://aws.amazon.com|aws.amazon.com> pointing to LocalStack
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*<http://aws.amazon.com|aws.amazon.com> with record DynamicRecord(record_type=<RecordType.A: 1>, record_id=None)
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*<http://cloudfront.net|cloudfront.net> pointing to LocalStack
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding host .*<http://cloudfront.net|cloudfront.net> with record DynamicRecord(record_type=<RecordType.A: 1>, record_id=None)
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern ^aws\.amazon\.com
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern ^github-production-release-.*\.s3(\.[^\.]+)?\.amazonaws\.com
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern .*(forums|console|docs|clientvpn|sso|boto3|(signin(\-reg)?))\.([^\.]+\.)?(aws\.amazon|amazonaws)\.com
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern ^localstack-pods-.*\.s3(\.[^\.]+)?\.amazonaws\.com
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern ^aws-glue-etl-artifacts\.s3(\.[^\.]+)?\.amazonaws\.com
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern ^localstack-assets\.s3(\.[^\.]+)?\.amazonaws\.com
2023-11-24 13:22:05 2023-11-24T12:22:05.905 DEBUG --- [  MainThread] localstack.dns.server      : Adding skip pattern .*captcha-prod\.s3(\.[^\.]+)?\.amazonaws\.com
b
Sorry for the trouble! Just checking, is this connected to pants somehow?
b
I'm so sorry, posted to the wrong slack 🙈
b
All good! You just might not get very useful answers here 😄