According to the documentation for interface configuration files in RHEL 6, an interface can specify which name server it would like to use by including the directive DNS{1,2}=address
. The documentation states,
where address is a name server address to be placed in /etc/resolv.conf if the PEERDNS directive is set to yes
Let's say I define this line for two different interfaces. Which one will appear in resolv.conf? Each time a different interface is used, will resolv.conf be overwritten once again?
In general, in the circumstance of multiple interfaces, is there a good resource to determine which name server will be used by which interface?
Thanks.