Timeline for How to correctly setup DNS for a macvlan in a namespace (ping IP works, ping URL does not)?
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 18, 2022 at 14:14 | vote | accept | bomben | ||
| Feb 13, 2021 at 16:45 | answer | added | bomben | timeline score: 1 | |
| Feb 13, 2021 at 16:34 | comment | added | bomben | I just found that my /etc/resolv.conf inside the new namespace had 8.8.1.1 in it. I don't know why, but after a reboot it is now set to 8.8.8.8 (as the default resolv.conf) and it works. | |
| Feb 13, 2021 at 16:31 | history | edited | bomben | CC BY-SA 4.0 | added 212 characters in body |
| Feb 13, 2021 at 16:09 | history | edited | bomben | CC BY-SA 4.0 | added 197 characters in body |
| Feb 13, 2021 at 15:48 | history | edited | bomben | CC BY-SA 4.0 | adding tcpdump output |
| Feb 13, 2021 at 15:37 | comment | added | bomben | resolvconf shows namesever 192.168.100.1 which is my edgrouter. This setting works fine in default namespace - regardless of how the router resolves this (probably by using the ISP modem). It is not relevant I think. The issue is why this same setting does not work from inside the new namespace nsben1 I created - despite the resolv.conf pointing to the same IP and this also beeing the default route. I will look into your links and hints of course. | |
| Feb 13, 2021 at 12:21 | comment | added | A.B | Also see how to have a separate resolv.conf when using ip netns exec in this Q/A, in case that helps: unix.stackexchange.com/questions/471122/… | |
| Feb 13, 2021 at 12:18 | comment | added | A.B | So from the question and your comment, you are requesting DNS from a system that doesn't provide DNS? Or did I miss something? You should do debugging using tcpdump and the dig command (install both). I wouldn't be able to give an answer on the problem. | |
| Feb 13, 2021 at 11:39 | comment | added | bomben | I just realized that my edgerouter seems not to have any setting set for DNS. I assume it is something that gets added to the rules somewhere when I connect the WAN of the router to the ISP modem. But I am not sure. I know I changed the DNS on my laptops to 8.8.8.8 partially and had no trouble doing this. | |
| Feb 13, 2021 at 11:31 | comment | added | bomben | @A.B added this information at the bottom. | |
| Feb 13, 2021 at 11:30 | history | edited | bomben | CC BY-SA 4.0 | added nameserver |
| Feb 13, 2021 at 10:34 | comment | added | A.B | You still should add in your question your DNS settings. While there are different possible parts that handle it, the result is in /etc/resolv.conf. | |
| Feb 13, 2021 at 9:37 | history | asked | bomben | CC BY-SA 4.0 |