allow to set dns server for static config
Task Info (Flyspray) | |
---|---|
Opened By | Gerd v. Egidy (gvegidy) |
Task ID | 73295 |
Type | Feature Request |
Project | Arch Linux |
Category | Arch Projects |
Version | None |
OS | All |
Opened | 2022-01-08 12:11:58 UTC |
Status | Assigned |
Assignee | Giancarlo Razzolini (grazzolini) |
Details
Description:
The ipconfig tool contained in mkinitcpio-nfs-utils does not allow you to set a dns server when using static ip configuration. A dns server is only supported for dhcp. When you try to set something like this:
ip=192.168.1.13::192.168.1.1:255.255.255.0:test.local:eth0:none:8.8.8.8
you get "ipconfig: too many options for eth0"
While the ipconfig-source is hosted on https://sources.archlinux.org/other/mkinitcpio/, the actual source seems to come from the linux kernel klibc and can be seen for example here: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/tree/usr/kinit
The current version of ipconfig at klibc supports setting the dns server like in the example above. So updating ipconfig should suffice to add dns server support.
Additional info:
- this is about mkinitcpio-nfs-utils 0.3-7
- originally reported against the Arch-derivate SystemRescue at https://gitlab.com/systemrescue/systemrescue-sources/-/issues/243