You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR Linux management is a separate network namespace which doesn't share the DNS of the root netns setup by docker.
Because of that, users who want to get internet/external access from the management (or any other) net-inst have to configure DNS manually.
We can improve this a bit by
figuring out which DNS servers are configured on the host
adding these dns entries in the SRL config template
This will remove one of the tedious workflows of adding DNS servers manually, because often you can't just add 1.1.1.1 or 8.8.4.4 and you need to use the DNS servers of the cloud environment your VM is on.
finding DNS addresses
It all starts with DNS addresses. They can be found in /etc/resolv.conf for older systems and in sudo resolvectl status <interface> on newer distros.
We have to check both and add addresses from both if both exist.
To find which interface DNS addresses to use we should use rtnetlink and finding a route to 8.8.8.8 and the interface that is returned for this addr.
Configuring DNS entries
The text was updated successfully, but these errors were encountered:
yes. We do not need to run any route lookup or anything, just take the two files, extract the ip from the nameserver <ip> lines and we're all good. Take a look at above PR.
SR Linux management is a separate network namespace which doesn't share the DNS of the root netns setup by docker.
Because of that, users who want to get internet/external access from the management (or any other) net-inst have to configure DNS manually.
We can improve this a bit by
This will remove one of the tedious workflows of adding DNS servers manually, because often you can't just add 1.1.1.1 or 8.8.4.4 and you need to use the DNS servers of the cloud environment your VM is on.
finding DNS addresses
It all starts with DNS addresses. They can be found in
/etc/resolv.conf
for older systems and insudo resolvectl status <interface>
on newer distros.We have to check both and add addresses from both if both exist.
To find which interface DNS addresses to use we should use rtnetlink and finding a route to 8.8.8.8 and the interface that is returned for this addr.
Configuring DNS entries
The text was updated successfully, but these errors were encountered: