1 |
On 3/10/21 8:25 AM, Michael wrote: |
2 |
> I think this is relevant to DNS resolution of/with domain controllers |
3 |
> and may depend on the AD/DC topology. |
4 |
|
5 |
I disagree. Pure Linux in a MIT / Heimdal Kerberos environment has the |
6 |
same requirements. Hence having nothing specific to do with Active |
7 |
Directory, much less the AD topology. |
8 |
|
9 |
> The idea is to use the LAN address of the box as the first address |
10 |
> in /etc/hosts and use 127.0.0.1 as the second address in the file. |
11 |
|
12 |
Please elaborate. Because I believe the following qualifies with your |
13 |
statement: |
14 |
|
15 |
192.0.2.1 host.example.net host |
16 |
127.0.0.1 localhost |
17 |
|
18 |
Which is effectively the same as the following: |
19 |
|
20 |
127.0.0.1 localhost |
21 |
192.0.2.1 host.example.net host |
22 |
|
23 |
Both of which are different than the following: |
24 |
|
25 |
192.0.2.1 host.example.net host |
26 |
127.0.0.1 localhost host.example.net host |
27 |
|
28 |
Putting host.example.net and host on the 127.0.0.1 line doesn't |
29 |
accomplish anything. And it still suffers from -- what I think is -- |
30 |
the poor recommendation that I'm inquiring about. |
31 |
|
32 |
> If more AD/DNS servers exist in the network, then 127.0.0.1 could be |
33 |
> even further down the list. |
34 |
> |
35 |
> https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ff807362(v=ws.10)?redirectedfrom=MSDN |
36 |
|
37 |
What does the number of DNS servers have to do with the contents of the |
38 |
/etc/hosts file? |
39 |
|
40 |
How is the contents of the /etc/hosts file related to the |
41 |
/etc/resolv.conf file? |
42 |
|
43 |
> I haven't over-thought this and there may be more to it, but on a |
44 |
> pure linux environment I expect this would not be a requirement, |
45 |
> hence the handbook approach. |
46 |
|
47 |
Apples and bowling balls. /etc/hosts is not the same concept as |
48 |
/etc/resolv.conf. |
49 |
|
50 |
|
51 |
|
52 |
-- |
53 |
Grant. . . . |
54 |
unix || die |