[arch-releng] [RFC] [PATCH] [archiso] Add DNS resolver support to archiso_pxe_common
[ramfs /]# cat /etc/resolv.conf
nameserver 192.168.0.77
[ramfs /]# curl -O http://releng.archlinux.org/pxeboot/README
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1129 100 1129 0 0 2191 0 --:--:-- --:--:-- --:--:-- 4589
[ramfs /]#
Signed-off-by: Gerardo Exequiel Pozzi
Am 24.11.2011 03:25, schrieb Gerardo Exequiel Pozzi:
+ # Add DNS resolver support + # Do not "add_binary /lib/libnss_dns.so.2", because will add libnss_dns-VERSION.so.2 as libnss_dns.so.2 + # Is not an issue will work (nobody links directly to VERSION), but is not nice. + add_symlink $(readlink /lib/libnss_dns.so.2) /lib/libnss_dns.so.2 + add_binary $(readlink -f /lib/libnss_dns.so.2)
Please, libnss_files, too - /etc/hosts is always useful. Also, shouldn't you add /etc/nssswitch.conf as well?
On 11/24/2011 06:49 AM, Thomas Bächler wrote:
Am 24.11.2011 03:25, schrieb Gerardo Exequiel Pozzi:
+ # Add DNS resolver support + # Do not "add_binary /lib/libnss_dns.so.2", because will add libnss_dns-VERSION.so.2 as libnss_dns.so.2 + # Is not an issue will work (nobody links directly to VERSION), but is not nice. + add_symlink $(readlink /lib/libnss_dns.so.2) /lib/libnss_dns.so.2 + add_binary $(readlink -f /lib/libnss_dns.so.2) Please, libnss_files, too - /etc/hosts is always useful. Also, shouldn't you add /etc/nssswitch.conf as well?
OK I will put files support. Nope, bah depending what your want, now that nss_files will be add is likely that you want other behaviour than the default for "hosts" db (|dns [!UNAVAIL=return] files)| to (files dns) like provided by filesystem pkg. What do you think? I can add a fixed nsswich.conf with only "hosts: files dns" or keep default behaviour, or any other thing... -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
Am 24.11.2011 14:12, schrieb Gerardo Exequiel Pozzi:
Nope, bah depending what your want, now that nss_files will be add is likely that you want other behaviour than the default for "hosts" db (|dns [!UNAVAIL=return] files)| to (files dns) like provided by filesystem pkg.
What do you think? I can add a fixed nsswich.conf with only "hosts: files dns" or keep default behaviour, or any other thing...
I don't know what a sane default is - however, files before dns sounds reasonable.
participants (2)
-
Gerardo Exequiel Pozzi
-
Thomas Bächler