TongueTied
08-14-2002, 01:43 AM
Sorry about this one, but I am slowly learning this stuff.
Do you need to enter all clients and ips in the hosts file if you also have a DNS running?
Using SuSE 7.3, I have set up a DNS and it seems to be working. I can use nslookup and query hosts. No error messages in the messages file (/var/log/messages). I have tryed the follwing two scenarios:
1. hosts file has all ip addresses and client names for the network,
-Typed in "nslookup machine1" from any windows client on the network
-Result is:
"Server: server.domain
Address: 192.168.1.1
Name: machine1.domain
Address 192.168.1.100"
2. hosts file does NOT have all ip addresses and client names for the network,
-Typed in "nslookup machine1" from any windows client on the network
-Result is:
"Server: server.domain
Address: 192.168.1.1
***machine1.domain can't find machine1: Non-existant domain"
Using nslookup to query hosts outside my network such as www.linuxnewbie.org works regardless of what is in the hosts file.
So, is there something strange going on or is it just the hosts file issue and if a DNS is working properly and all hosts are listed in your zone files, do you still need a "hosts" file?
Philip
Do you need to enter all clients and ips in the hosts file if you also have a DNS running?
Using SuSE 7.3, I have set up a DNS and it seems to be working. I can use nslookup and query hosts. No error messages in the messages file (/var/log/messages). I have tryed the follwing two scenarios:
1. hosts file has all ip addresses and client names for the network,
-Typed in "nslookup machine1" from any windows client on the network
-Result is:
"Server: server.domain
Address: 192.168.1.1
Name: machine1.domain
Address 192.168.1.100"
2. hosts file does NOT have all ip addresses and client names for the network,
-Typed in "nslookup machine1" from any windows client on the network
-Result is:
"Server: server.domain
Address: 192.168.1.1
***machine1.domain can't find machine1: Non-existant domain"
Using nslookup to query hosts outside my network such as www.linuxnewbie.org works regardless of what is in the hosts file.
So, is there something strange going on or is it just the hosts file issue and if a DNS is working properly and all hosts are listed in your zone files, do you still need a "hosts" file?
Philip