I want to set two name servers to use for DNS Service redundancy on my system. I have two IP address, say, 172.16.5.1, and 172.16.5.2, to use. I'm looking at resolvconf.conf(5) under the RESOLVCONF OPTIONS section to determine the proper syntax to write those addresses into the resolve.conf file. However, I don't see any mention about how to declare multiple addresses in the man page.
For testing, I used the space [ ], then a comma [,] as a delimiter. For example, using the comma as the delimiter, I entered in the following for the resolvconf.conf file.
Then, a quick run to update the resolve.conf file
To confirm the changes are working, I first output resolv.conf to see if anything was written in:
Then:
When using a space,
How would I go about adding multiple addresses in this manner? Would I just have to disable
name_servers
Prepend name servers to the dynamically generated list. You
should set this to 127.0.0.1 if you use a local name server
other than libc.
For testing, I used the space [ ], then a comma [,] as a delimiter. For example, using the comma as the delimiter, I entered in the following for the resolvconf.conf file.
Code:
name_servers 172.16.5.1,172.16.5.2
Then, a quick run to update the resolve.conf file
resolvconf -u
To confirm the changes are working, I first output resolv.conf to see if anything was written in:
Code:
# less /etc/resolv.conf
# Generated by resolvconf
search internal.corp.domain
nameserver 172.16.5.1,172.16.5.2
Then:
ping www.google.com
Code:
# ping www.google.com
ping: cannot resolve www.google.com: Name does not resolve
When using a space,
resolvconf -u
gives:
Code:
# resolvconf -u
/etc/resolvconf.conf: 172.16.5.2: not found
How would I go about adding multiple addresses in this manner? Would I just have to disable
resolvconf
in resolvconf.conf, and instead configure them as separate lines?
Code:
resolvconf=NO
Code:
# less /etc/resolv.conf
search internal.corp.domain
nameserver 172.16.5.1
nameserver 172.16.5.2