-
Notifications
You must be signed in to change notification settings - Fork 55
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
refactor: dns+dhcp to a module, support short host queries #427
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
dbf8c7a
to
6dccd81
Compare
Today I had a routing problem in Ghaf, because my default internet router subnet is 192.168.101.0/24.
The problem was that the net-vm was not able to ping my laptop because the default route in that case was through ethint0 and not to wlp0s4f0. The solution in my case was simple, change the subnet in my Internet router to 192.168.110.0. But, many user could have a similar problem if their Internet routers subnet are 192.168.100.0 or 192.168.101.0. I think that the subnet managed by the net-vm should be one less popular, such as 192.168.170.0/ |
My tests on X1 indicates that currently VM's don't resolve to any name, with .ghaf or without. Investigating... |
6dccd81
to
301b72d
Compare
301b72d
to
428e2b8
Compare
This comment was marked as outdated.
This comment was marked as outdated.
428e2b8
to
fe6803e
Compare
fe6803e
to
cab966c
Compare
e679e1b
to
6be3fb5
Compare
6be3fb5
to
2110ef5
Compare
2110ef5
to
a4f1cfb
Compare
a4f1cfb
to
7e31c71
Compare
7e31c71
to
e3ada03
Compare
* based on decisions to use static names over internal DNS tiiuae#427 Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* based on decisions to use static names over internal DNS tiiuae#427 * removes dnsmasq and dhcp from net-vm to other guests * WIP: static IPs not assigned to other guests yet Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP #427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP #427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP #427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP tiiuae#427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
* Set static IPs and names for all vms * Based on decisions to use static IPs/names over internal DNS and DHCP #427 * Removes dnsmasq and dhcp from net-vm to other guests Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Tero Tervala <tero.tervala@unikie.com> Co-authored-by: Tero Tervala <tero.tervala@unikie.com>
Description of changes
of DNS and DHCP services from dnsmasq to something else, like rust-based,
later
module
listener on 127.0.0.53 which made the name queries time out before going
to primary nameserver 192.168.100.1 in the net-vm. Also note that it is
required to set resolve.enable to false - even when NixOS options document
the default as false.
debugging the dnsmasq itself.
the ghaf debug profile
Considerations:
net-vm (192.168.100.1) as default nameserver. This is considered
more secure than using net-vm. Future development could be
debug optional that allows ghaf-host access to local network host
names. This has risks related to development and testing time
assumptions on ghaf-host access to names with release builds.
for debug builds. See rationale above.
Checklist for things done
x86_64
aarch64
riscv64
nix flake check --accept-flake-config
and it passesTesting