Can I have different nameservers?

Can I have different nameservers?

You sure can. For example, where I work, we have 4 name servers, 2 hosted with one DNS host, one hosted by us, and the other one hosted by a second external DNS host.

Can I use different nameservers for different subdomains?

Yes, You can. you will have to add the NS records for the subdomain in the DNS Manager for your TLD (Top Level Domain). For Example: In DNS Manager for TLD add NS records Like.

Can I have two different nameservers?

1 Answer. Sort of, but depending on your needs it may or may not work the way you want it to. The purpose of having more than one nameserver on a domain is redundancy, if there are multiple then each nameserver would be expected to contain the same records as its peers.

When to try the next nameserver in resolv.conf?

The resolver will only try the next nameserver if the first nameserver times out. The resolv.conf manpage says: Internet address (in dot notation) of a name server that the resolver should query. Up to MAXNS (currently 3, see ) name servers may be listed, one per keyword.

Can a Linux server use resolv.conf?

Linux servers can use /etc/resolv.conf to list name servers that the server will use when trying to convert a domain name (like example.com) to an IP address (like 10.1.1.1) that it can use. /etc/resolv.conf can have one or more name server entries.

How many server entries are allowed in resolv.conf?

This is the resolv.conf on our proxy (squid) server. I understand that Squid uses /etc/resolv.conf for name resolution. Actually, you’re only allowed three server entries in /etc/resolv.conf. You can effectively have as many namservers as you want. Just remember that resolution will fail on the first before going to the second, and so on.

How does the resolver library work if there are multiple nameservers?

If there are multiple servers, the resolver library queries them in the order listed. (The algorithm used is to try a name server, and if the query times out, try the next, until out of name servers, then repeat trying all the name servers until a maximum number of retries are made.) Also see the resolver (5) manual page for more information.