In the German Gentoo documentation http://www.gentoo.de/doc/de/handbook/handbook-x86.xml?part=4&chap=1 it is proposed to add a line in /etc/conf.d/net
Like this for example:
Code: Select all
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /usr/share/doc/openrc/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
# The network scripts are now part of net-misc/netifrc
# In order to avoid sys-apps/openrc-0.12.4 from removing this file, this comment was
# added; you can safely remove this comment. Please see
# /usr/share/doc/netifrc*/README* for more information.
#My name servers put here:
But in the aforementioned document the 'name servers' line is part of the configuration for a specific network interface together with static IP address and netmask as well as route information.
Another option should be the file /etc/resolvconf which is managed via /etc/resolvconf.conf if I understand correctly. There I can also set the name servers.
Which way would you recommend?
Thanks for your help
BTW: Is there a command which allows me to directly check which name servers my system uses?