[YLUG] DNS

Dr P Dupre pd520 at york.ac.uk
Sat Feb 9 16:44:54 GMT 2008


Yes it works by setting the /etc/hosts
I thought that it would have been obvious to use my router as a local DNS
since when it gave the IP address it got the right name. In addition,
I thought that I could even have give a name to my local network.
The /etc/resolv.conf is set with the nameserver 192.168.0.1
So why, it does not work ?

Regards.

> On 09/02/2008, Dr P Dupre <pd520 at york.ac.uk> wrote:
>> Thank.
>>
>> Now, I have a router 192.168.0.1
>> I have 2 machines in 192.168.0.100 (machine1) and in .101 (machine2)
>> The router has the name associated to each one.
>> On each one, I can make a ping machine1 on machine1
>> and ping machine2 on machine, but ping machine1 from machine2
>> does not work (and vice et versa).
>> I put for the DNS 192.168.0.1
>
> Sounds like your DNS will be assigned via DHCP leases?  If so, you
> probably don't want to muck with that too much or things will break :)
>
> Just drop references to all your local machines into /etc/hosts.
>
> That'll let you ping them easily/simply through whatever aliases you
> feel are appropriate, and scales just fine up to 5-10 machines before
> getting very cumbersome; internal DNS is definitely an option, but its
> going to be 50x more work to setup and requires careful maintenance.
>
> _______________________________________________
> York mailing list
> York at lists.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/york
>

-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Patrick Dupré                                             pd520 at york.ac.uk
University of York                                 Department of Chemistry
Heslington, York              YO10 5DD                      United Kingdom
Phone: +44-(0)-1904-434384                        Fax: +44-(0)-1904-432516
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


More information about the York mailing list