[CentOS] Resolv.conf with multiple adaptors on multiple networks

Rob Townley rob.townley at gmail.com
Fri Oct 9 18:00:02 UTC 2009


On Fri, Oct 9, 2009 at 10:39 AM, ML <mailinglists at mailnewsrss.com> wrote:
> Hi All,
>
> I did a clean install of CentOS 5.3 yesterday. During setup I
> activated both adapters on startup. etho is my public IP and eth1 is
> my private/internal IP.
>
> It did not let me specify nameservers though.
>
> So I know this is resolv.conf.
>
> I know I put in:
> nameserver xxx.xxx.xxx.xxx
> nameserver xxx.xxx.xxx.xxx
>
> But how do I put in nameservers for specific networks? Example, I want
> my public IP to resolve to the comcast name-servers top get out to
> things like Google. I want internal to default to my internal DNS once
> I have it setup.
>
> -Jason
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

i second what the others have said, but you can specify nameservers
for each nic in their
/etc/sysconfig/network-scripts/ifcfg-ethX file.


More information about the CentOS mailing list