Hi,
In my Linux machine there are three NIC connected. Is it possible to add a primary DNS server and a secondary DNS server for each interface? Or all interface are configured through a single /etc/resolv.conf file?
Thanks in advance.
Renjith

Recommended Answers

All 2 Replies

I have never seen configuration like this.
And I am really interested to know more about the network where you do need it?
Subnets, gateways, wan access. Hardware: routers, switches.

In my Linux machine there are three NIC connected. Is it possible to add a primary DNS server and a secondary DNS server for each interface?

What DNS server are you using? With BIND it is possible but not sure why you'd want to do it.

Or all interface are configured through a single /etc/resolv.conf file?

The /etc/resolv.conf file is only used by the machine for DNS lookups. It has nothing to do with the DNS server configuration. The DNS server configuration is controlled by the named.conf (for BIND).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.