abiosoft / abiosoft/colima

dnsHosts entry appears to clobber entire domain

Open
#733 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
30.8k
Forks
613
PR merge metrics
No merged PRs in 30d

Description

### Description

```
dnsHosts:
www.yahoo.com: host.docker.internal
```
The above will redirect www.yahoo.com just fine, however everything else in yahoo.com becomes broken. E.g. finance.yahoo.com will no longer resolve.

### Version

Colima Version: 0.5.5
Lima Version: 0.15.1
Qemu Version: 8.0.0

### Operating System

- [X] macOS Intel <= 12 (Monterrey)
- [ ] macOS Intel >= 13 (Ventura)
- [ ] macOS M1 <= 12 (Monterrey)
- [ ] macOS M1 >= 13 (Ventura)
- [ ] Linux

### Output of `colima status`

INFO[0000] colima is running using QEMU
INFO[0000] arch: x86_64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] address: 192.168.106.2
INFO[0000] socket: unix:///Users/jgm/.colima/default/docker.sock

### Reproduction Steps

1. colima start --edit
2. dnsHosts:
www.yahoo.com: host.docker.internal
3. in container, www.yahoo.com resolves, but finance.yahoo.com does not

### Expected behaviour

When redirecting X.domain.tld using dnsHosts, it is expected that Y.domain.tld (unmentioned in dnsHosts) will still resolve normally.

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.