Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 21:25:39 -0500
From:      "John Brooks" <john@day-light.com>
To:        <freebsd-isp@FreeBSD.ORG>
Subject:   IP resolving to Octal
Message-ID:  <000501c0f79d$ff696fc0$0b00a8c0@dle>

next in thread | raw e-mail | index | archive | help

I assisted a friend to setup a new FreeBSD4.3 box (the first in his
network). Network has 50+ linux boxes resolving from hosts files in this
format (don't ask me why, it's his format):

010.000.010.012   charity.cs.domain.edu
010.000.010.013   patience.cs.domain.edu
010.000.010.014   virtue.cs.domain.edu
...

On linux this apparently worked, on BSD it gets converted to octal and
returned in dotted decimal. "charity" resolved to an IP of 8.0.8.10 instead
of 10.0.10.12. Anyway, we worked through all issues first and then set up
DNS which is working properly - he now thinks BSD is "way cool".

My question is why would BSD and Linux interpret the same hosts file in such
a different manner? Which should be considered the correct behavior?

--
John Brooks




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501c0f79d$ff696fc0$0b00a8c0>