Order of DNS servers on client given by DHCP

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm running DNS and DHCP server on debian 8 server within local network.
Issue is that clients get nameservers by DHCP server in wrong/not desired order.
DHCP server config:
subnet 192.168.10.0 netmask 255.255.255.0
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.10.1, 8.8.8.8, 8.8.4.4;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
Where 192.168.10.1 is DNS and DHCP server.
Nameservers listed for local interface on client:
IP4.DNS[1]: 8.8.8.8
IP4.DNS[2]: 8.8.4.4
IP4.DNS[3]: 192.168.10.1
Client is Ubuntu 17.10 with isc-dhcp-client
EDIT:
Content of /etc/dhcp/dhclient.conf
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
How to get nameservers in proper order from DHCP server?
Desired order is to have local name server used first.
Ergo:
IP4.DNS[1]: 192.168.10.1
IP4.DNS[2]: 8.8.8.8
IP4.DNS[3]: 8.8.4.4
debian ubuntu networking dns dhcp
add a comment |Â
up vote
0
down vote
favorite
I'm running DNS and DHCP server on debian 8 server within local network.
Issue is that clients get nameservers by DHCP server in wrong/not desired order.
DHCP server config:
subnet 192.168.10.0 netmask 255.255.255.0
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.10.1, 8.8.8.8, 8.8.4.4;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
Where 192.168.10.1 is DNS and DHCP server.
Nameservers listed for local interface on client:
IP4.DNS[1]: 8.8.8.8
IP4.DNS[2]: 8.8.4.4
IP4.DNS[3]: 192.168.10.1
Client is Ubuntu 17.10 with isc-dhcp-client
EDIT:
Content of /etc/dhcp/dhclient.conf
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
How to get nameservers in proper order from DHCP server?
Desired order is to have local name server used first.
Ergo:
IP4.DNS[1]: 192.168.10.1
IP4.DNS[2]: 8.8.8.8
IP4.DNS[3]: 8.8.4.4
debian ubuntu networking dns dhcp
Please add to the question what daemon are you using as DHCP client on Ubuntu side.
â Rui F Ribeiro
Jan 15 at 14:40
It's isc-dhcp-client ... added!
â Petr
Jan 16 at 10:30
@Fox It's Done!
â Petr
Jan 16 at 15:32
The request field ofdhclient.conflooks good. Are you sure there are no overrides in the network profile itself? I'm not sure where Ubuntu stores these, but if you configured the network in a GUI there should be a way to view such options
â Fox
Jan 18 at 19:36
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running DNS and DHCP server on debian 8 server within local network.
Issue is that clients get nameservers by DHCP server in wrong/not desired order.
DHCP server config:
subnet 192.168.10.0 netmask 255.255.255.0
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.10.1, 8.8.8.8, 8.8.4.4;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
Where 192.168.10.1 is DNS and DHCP server.
Nameservers listed for local interface on client:
IP4.DNS[1]: 8.8.8.8
IP4.DNS[2]: 8.8.4.4
IP4.DNS[3]: 192.168.10.1
Client is Ubuntu 17.10 with isc-dhcp-client
EDIT:
Content of /etc/dhcp/dhclient.conf
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
How to get nameservers in proper order from DHCP server?
Desired order is to have local name server used first.
Ergo:
IP4.DNS[1]: 192.168.10.1
IP4.DNS[2]: 8.8.8.8
IP4.DNS[3]: 8.8.4.4
debian ubuntu networking dns dhcp
I'm running DNS and DHCP server on debian 8 server within local network.
Issue is that clients get nameservers by DHCP server in wrong/not desired order.
DHCP server config:
subnet 192.168.10.0 netmask 255.255.255.0
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.10.1, 8.8.8.8, 8.8.4.4;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
Where 192.168.10.1 is DNS and DHCP server.
Nameservers listed for local interface on client:
IP4.DNS[1]: 8.8.8.8
IP4.DNS[2]: 8.8.4.4
IP4.DNS[3]: 192.168.10.1
Client is Ubuntu 17.10 with isc-dhcp-client
EDIT:
Content of /etc/dhcp/dhclient.conf
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
How to get nameservers in proper order from DHCP server?
Desired order is to have local name server used first.
Ergo:
IP4.DNS[1]: 192.168.10.1
IP4.DNS[2]: 8.8.8.8
IP4.DNS[3]: 8.8.4.4
debian ubuntu networking dns dhcp
edited Jan 16 at 15:32
asked Jan 15 at 14:27
Petr
642313
642313
Please add to the question what daemon are you using as DHCP client on Ubuntu side.
â Rui F Ribeiro
Jan 15 at 14:40
It's isc-dhcp-client ... added!
â Petr
Jan 16 at 10:30
@Fox It's Done!
â Petr
Jan 16 at 15:32
The request field ofdhclient.conflooks good. Are you sure there are no overrides in the network profile itself? I'm not sure where Ubuntu stores these, but if you configured the network in a GUI there should be a way to view such options
â Fox
Jan 18 at 19:36
add a comment |Â
Please add to the question what daemon are you using as DHCP client on Ubuntu side.
â Rui F Ribeiro
Jan 15 at 14:40
It's isc-dhcp-client ... added!
â Petr
Jan 16 at 10:30
@Fox It's Done!
â Petr
Jan 16 at 15:32
The request field ofdhclient.conflooks good. Are you sure there are no overrides in the network profile itself? I'm not sure where Ubuntu stores these, but if you configured the network in a GUI there should be a way to view such options
â Fox
Jan 18 at 19:36
Please add to the question what daemon are you using as DHCP client on Ubuntu side.
â Rui F Ribeiro
Jan 15 at 14:40
Please add to the question what daemon are you using as DHCP client on Ubuntu side.
â Rui F Ribeiro
Jan 15 at 14:40
It's isc-dhcp-client ... added!
â Petr
Jan 16 at 10:30
It's isc-dhcp-client ... added!
â Petr
Jan 16 at 10:30
@Fox It's Done!
â Petr
Jan 16 at 15:32
@Fox It's Done!
â Petr
Jan 16 at 15:32
The request field of
dhclient.conf looks good. Are you sure there are no overrides in the network profile itself? I'm not sure where Ubuntu stores these, but if you configured the network in a GUI there should be a way to view such optionsâ Fox
Jan 18 at 19:36
The request field of
dhclient.conf looks good. Are you sure there are no overrides in the network profile itself? I'm not sure where Ubuntu stores these, but if you configured the network in a GUI there should be a way to view such optionsâ Fox
Jan 18 at 19:36
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
Rather than attempt to control the order of DNS servers on the client, it would be cleaner to advertise only the internal DNS server(s). This is possible if the internal servers are configured to forward requests that they cannot fulfill to a given set of public DNS servers.
For instance, my BIND9 configuration (on IP 192.168.2.1) contains
options
...
forwarders
208.67.220.220;
208.67.222.222;
8.8.8.8;
8.8.4.4;
...
Alternatively (thanks @RuiFRibeiro), you can use a zone block to communicate with the root nameservers:
zone "." IN
type hint;
file "root.hint"
(where your distribution may use db.root instead of root.hint).
In either configuration, if the server cannot determine an IP for a requested name, it tries to contact another server, be that the servers defined in forwarders or the root nameservers, to find the appropriate IP. In other words, the local server is always tried first, and if it fails, a different server is used as a substitute.
The dhcpd.conf option is then simply
option domain-name-servers 192.168.2.1;
If you configure multiple redundant local DNS servers, each can be specified in the dhcpd configuration without worrying about their order, as they will all act the same.
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
1
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
add a comment |Â
up vote
3
down vote
I would not be surprised of some client DHCP daemon optimisation delivering DNS servers with public IP addresses first.
However, given your insistence on order:
I do no recommend relying on DNS answer order for giving different DNS views or answers.
Leaving those kind of decisions for your clients in your local infra-structure can lead to some unpredictable behaviours at the least time you need those problems, not least taking into account negative DNS caching. It will also lead to greater DNS traffic. You also end up loading DNS servers up the hierarchy with questions about your internal domains.
I would recommend designing a well thought DNS infra-structure, either with Internet and internal dedicated servers, or using views, and with at least two internal DNS servers.
TLDR Delivering via DHCP several DNS servers with different views of the "world" does not brings more stability to the service, quite by the contrary.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Rather than attempt to control the order of DNS servers on the client, it would be cleaner to advertise only the internal DNS server(s). This is possible if the internal servers are configured to forward requests that they cannot fulfill to a given set of public DNS servers.
For instance, my BIND9 configuration (on IP 192.168.2.1) contains
options
...
forwarders
208.67.220.220;
208.67.222.222;
8.8.8.8;
8.8.4.4;
...
Alternatively (thanks @RuiFRibeiro), you can use a zone block to communicate with the root nameservers:
zone "." IN
type hint;
file "root.hint"
(where your distribution may use db.root instead of root.hint).
In either configuration, if the server cannot determine an IP for a requested name, it tries to contact another server, be that the servers defined in forwarders or the root nameservers, to find the appropriate IP. In other words, the local server is always tried first, and if it fails, a different server is used as a substitute.
The dhcpd.conf option is then simply
option domain-name-servers 192.168.2.1;
If you configure multiple redundant local DNS servers, each can be specified in the dhcpd configuration without worrying about their order, as they will all act the same.
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
1
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
add a comment |Â
up vote
3
down vote
accepted
Rather than attempt to control the order of DNS servers on the client, it would be cleaner to advertise only the internal DNS server(s). This is possible if the internal servers are configured to forward requests that they cannot fulfill to a given set of public DNS servers.
For instance, my BIND9 configuration (on IP 192.168.2.1) contains
options
...
forwarders
208.67.220.220;
208.67.222.222;
8.8.8.8;
8.8.4.4;
...
Alternatively (thanks @RuiFRibeiro), you can use a zone block to communicate with the root nameservers:
zone "." IN
type hint;
file "root.hint"
(where your distribution may use db.root instead of root.hint).
In either configuration, if the server cannot determine an IP for a requested name, it tries to contact another server, be that the servers defined in forwarders or the root nameservers, to find the appropriate IP. In other words, the local server is always tried first, and if it fails, a different server is used as a substitute.
The dhcpd.conf option is then simply
option domain-name-servers 192.168.2.1;
If you configure multiple redundant local DNS servers, each can be specified in the dhcpd configuration without worrying about their order, as they will all act the same.
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
1
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Rather than attempt to control the order of DNS servers on the client, it would be cleaner to advertise only the internal DNS server(s). This is possible if the internal servers are configured to forward requests that they cannot fulfill to a given set of public DNS servers.
For instance, my BIND9 configuration (on IP 192.168.2.1) contains
options
...
forwarders
208.67.220.220;
208.67.222.222;
8.8.8.8;
8.8.4.4;
...
Alternatively (thanks @RuiFRibeiro), you can use a zone block to communicate with the root nameservers:
zone "." IN
type hint;
file "root.hint"
(where your distribution may use db.root instead of root.hint).
In either configuration, if the server cannot determine an IP for a requested name, it tries to contact another server, be that the servers defined in forwarders or the root nameservers, to find the appropriate IP. In other words, the local server is always tried first, and if it fails, a different server is used as a substitute.
The dhcpd.conf option is then simply
option domain-name-servers 192.168.2.1;
If you configure multiple redundant local DNS servers, each can be specified in the dhcpd configuration without worrying about their order, as they will all act the same.
Rather than attempt to control the order of DNS servers on the client, it would be cleaner to advertise only the internal DNS server(s). This is possible if the internal servers are configured to forward requests that they cannot fulfill to a given set of public DNS servers.
For instance, my BIND9 configuration (on IP 192.168.2.1) contains
options
...
forwarders
208.67.220.220;
208.67.222.222;
8.8.8.8;
8.8.4.4;
...
Alternatively (thanks @RuiFRibeiro), you can use a zone block to communicate with the root nameservers:
zone "." IN
type hint;
file "root.hint"
(where your distribution may use db.root instead of root.hint).
In either configuration, if the server cannot determine an IP for a requested name, it tries to contact another server, be that the servers defined in forwarders or the root nameservers, to find the appropriate IP. In other words, the local server is always tried first, and if it fails, a different server is used as a substitute.
The dhcpd.conf option is then simply
option domain-name-servers 192.168.2.1;
If you configure multiple redundant local DNS servers, each can be specified in the dhcpd configuration without worrying about their order, as they will all act the same.
edited Jan 15 at 19:33
answered Jan 15 at 18:10
Fox
4,72111131
4,72111131
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
1
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
add a comment |Â
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
1
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
+1 The advice is good. Why would you restrict yourself to forwarders, and not talking with the root nameservers? I also advise 2 internal DNS servers.
â Rui F Ribeiro
Jan 15 at 18:27
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Forwarders are simple, easy to configure. If you'd like to note in your answer (or leave a link if we've already got it here) how to configure direct communication to the root servers, that would be a good option too. I might even convert. As for redundant servers, that is always nice. In that case though, all servers can be supplied through dhcpd without regard for order, so it is a trivial change
â Fox
Jan 15 at 18:49
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
Usually the sample configurations come using the root name servers. zone "." IN type hint; file "root.hint"; ; - root.hint also is known as db.root
â Rui F Ribeiro
Jan 15 at 19:22
1
1
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks for the tip! I've merged things from this comments section into the answer
â Fox
Jan 15 at 19:33
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
Thanks, answer make a sence. I'm still wandering about ordering servers. For example when I'll have two DNS servers in network I want one to be used as primary so order can be still important. Issue appears only on my client Ubuntu 17.10 all other clients (ubuntu<17.xx, MS stations) are ok.
â Petr
Jan 16 at 10:28
add a comment |Â
up vote
3
down vote
I would not be surprised of some client DHCP daemon optimisation delivering DNS servers with public IP addresses first.
However, given your insistence on order:
I do no recommend relying on DNS answer order for giving different DNS views or answers.
Leaving those kind of decisions for your clients in your local infra-structure can lead to some unpredictable behaviours at the least time you need those problems, not least taking into account negative DNS caching. It will also lead to greater DNS traffic. You also end up loading DNS servers up the hierarchy with questions about your internal domains.
I would recommend designing a well thought DNS infra-structure, either with Internet and internal dedicated servers, or using views, and with at least two internal DNS servers.
TLDR Delivering via DHCP several DNS servers with different views of the "world" does not brings more stability to the service, quite by the contrary.
add a comment |Â
up vote
3
down vote
I would not be surprised of some client DHCP daemon optimisation delivering DNS servers with public IP addresses first.
However, given your insistence on order:
I do no recommend relying on DNS answer order for giving different DNS views or answers.
Leaving those kind of decisions for your clients in your local infra-structure can lead to some unpredictable behaviours at the least time you need those problems, not least taking into account negative DNS caching. It will also lead to greater DNS traffic. You also end up loading DNS servers up the hierarchy with questions about your internal domains.
I would recommend designing a well thought DNS infra-structure, either with Internet and internal dedicated servers, or using views, and with at least two internal DNS servers.
TLDR Delivering via DHCP several DNS servers with different views of the "world" does not brings more stability to the service, quite by the contrary.
add a comment |Â
up vote
3
down vote
up vote
3
down vote
I would not be surprised of some client DHCP daemon optimisation delivering DNS servers with public IP addresses first.
However, given your insistence on order:
I do no recommend relying on DNS answer order for giving different DNS views or answers.
Leaving those kind of decisions for your clients in your local infra-structure can lead to some unpredictable behaviours at the least time you need those problems, not least taking into account negative DNS caching. It will also lead to greater DNS traffic. You also end up loading DNS servers up the hierarchy with questions about your internal domains.
I would recommend designing a well thought DNS infra-structure, either with Internet and internal dedicated servers, or using views, and with at least two internal DNS servers.
TLDR Delivering via DHCP several DNS servers with different views of the "world" does not brings more stability to the service, quite by the contrary.
I would not be surprised of some client DHCP daemon optimisation delivering DNS servers with public IP addresses first.
However, given your insistence on order:
I do no recommend relying on DNS answer order for giving different DNS views or answers.
Leaving those kind of decisions for your clients in your local infra-structure can lead to some unpredictable behaviours at the least time you need those problems, not least taking into account negative DNS caching. It will also lead to greater DNS traffic. You also end up loading DNS servers up the hierarchy with questions about your internal domains.
I would recommend designing a well thought DNS infra-structure, either with Internet and internal dedicated servers, or using views, and with at least two internal DNS servers.
TLDR Delivering via DHCP several DNS servers with different views of the "world" does not brings more stability to the service, quite by the contrary.
edited Feb 3 at 0:26
answered Jan 15 at 14:37
Rui F Ribeiro
35.3k1270113
35.3k1270113
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f417248%2forder-of-dns-servers-on-client-given-by-dhcp%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please add to the question what daemon are you using as DHCP client on Ubuntu side.
â Rui F Ribeiro
Jan 15 at 14:40
It's isc-dhcp-client ... added!
â Petr
Jan 16 at 10:30
@Fox It's Done!
â Petr
Jan 16 at 15:32
The request field of
dhclient.conflooks good. Are you sure there are no overrides in the network profile itself? I'm not sure where Ubuntu stores these, but if you configured the network in a GUI there should be a way to view such optionsâ Fox
Jan 18 at 19:36