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

Network does not include all of the aliased domains #5239

Closed
gpechiro opened this issue Jul 26, 2023 · 4 comments
Closed

Network does not include all of the aliased domains #5239

gpechiro opened this issue Jul 26, 2023 · 4 comments
Assignees
Labels
area/networking kind/bug Something isn't working release-note triage/confirmed Issue has been reproduced by dev team
Milestone

Comments

@gpechiro
Copy link

gpechiro commented Jul 26, 2023

Actual Behavior

When requesting a CNAME for a domain inside a container the IP is resolved properly but it does not include the domain the CNAME alias is for, the A record.

Steps to Reproduce

Start an ubuntu docker container docker run --rm -it --entrypoint /bin/bash ubuntu
Install dnsutils apt update && apt install -y dnsutils
Run nslookup on a url with a CNAME nslookup test.xiphoid24.com

Result

The proper IP address is resolved but the CNAME is returned as the Name and not an alias. The actual name (loc.xiphoid24.com) is not returned.

# nslookup test.xiphoid24.com
Server:         172.30.59.98
Address:        172.30.59.98#53

Non-authoritative answer:
Name:   test.xiphoid24.com
Address: 127.0.0.1

Expected Behavior

The proper IP address is resolved, the A record is listed as the name and the CNAME is listed as an Alias.

Address:  192.168.1.1

Non-authoritative answer:
Name:    loc.xiphoid24.com
Address:  127.0.0.1
Aliases:  test.xiphoid24.com

Additional Information

No response

Rancher Desktop Version

1.9.1

Rancher Desktop K8s Version

N/A

Which container engine are you using?

moby (docker cli)

What operating system are you using?

Windows

Operating System / Build Version

Windows 10 Pro 22H2

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

No

@gpechiro gpechiro added the kind/bug Something isn't working label Jul 26, 2023
@gunamata gunamata added triage/need-to-repro Needs to be reproduced by dev team area/networking labels Jul 27, 2023
@gunamata
Copy link
Contributor

I could reproduce the behavior stated in the issue description. Also, when I directly run the command in Powershell on the host machine, I see the actual name (loc.xiphoid24.com) printed in the output.

@Nino-K , Do you have any quick insights on what could be the reason nslookup command doesn't show the actual name from within a container?

In Powershell

> nslookup test.xiphoid24.com
Server:  UnKnown
Address:  fe80::d635:1dff:fead:319a

Non-authoritative answer:
Name:    loc.xiphoid24.com
Address:  127.0.0.1
Aliases:  test.xiphoid24.com
 

@jandubois
Copy link
Member

This looks like a bug in the Rancher Desktop host resolver.

Could you check if the bug is fixed by enabling the experimental network tunnel feature (see https://docs.rancherdesktop.io/ui/preferences/wsl/network), as that bypasses the host resolver?

@gpechiro
Copy link
Author

@jandubois I enabled the experimental network tunnel and I am getting the same results.

image

# nslookup test.xiphoid24.com
Server:         192.168.127.1
Address:        192.168.127.1#53

Non-authoritative answer:
Name:   test.xiphoid24.com
Address: 127.0.0.1

@gunamata gunamata added triage/confirmed Issue has been reproduced by dev team and removed triage/need-to-repro Needs to be reproduced by dev team labels Jul 31, 2023
@gunamata gunamata added this to the 1.11 milestone Aug 23, 2023
@Nino-K Nino-K modified the milestones: 1.11, 1.12 Oct 10, 2023
@Nino-K Nino-K modified the milestones: 1.12, 1.13 Dec 5, 2023
@gunamata gunamata modified the milestones: 1.13, 1.14 Feb 27, 2024
@Nino-K Nino-K modified the milestones: 1.14, 1.15 May 13, 2024
@Nino-K
Copy link
Member

Nino-K commented Jul 18, 2024

You have attached the output of the nslookup from Windows as an expected behavior. When you run the query you have attached on different platforms you'll get different output. I have also run the query on the Ubuntu distro and it looks like I get the correct output.

Windows

nslookup test.xiphoid24.com
Server:  pd2nsc5.st.vc.shawcable.net
Address:  2001:4e8:0:4009::15

Non-authoritative answer:
Name:    loc.xiphoid24.com
Address:  127.0.0.1
Aliases:  test.xiphoid24.com

MacOS

nslookup test.xiphoid24.com
Server:		2001:4e8:0:4009::15
Address:	2001:4e8:0:4009::15#53

Non-authoritative answer:
test.xiphoid24.com	canonical name = loc.xiphoid24.com.
Name:	loc.xiphoid24.com
Address: 127.0.0.1

Ubuntu Distro on Rancher Desktop

nslookup test.xiphoid24.com
Server:         172.27.176.1
Address:        172.27.176.1#53

Non-authoritative answer:
test.xiphoid24.com      canonical name = loc.xiphoid24.com.
Name:   loc.xiphoid24.com
Address: 127.0.0.1

Furthermore, different output from nslookup on different platforms is only related to the implementation of the nslookup itself on that specific platform.

I'm going to close this issue as it does not seem to be a real problem.

@Nino-K Nino-K closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking kind/bug Something isn't working release-note triage/confirmed Issue has been reproduced by dev team
Projects
None yet
Development

No branches or pull requests

5 participants