]] Simon Kelley 

| The name (10.1.2.) gets fed to inet_addr, which (possibly
| surprisingly) considers it be a valid representation of 10.1.0.2 .

Oh, that's not particularly surprising.  I'd rather have it be 10.1.2.0,
but POSIX doesn't allow that.

| There are various changes that could be made:
| 
| 1) get NXDOMAIN for any A for A query (that's what you'll get from
| BIND - it just forwards the query to a root server.)
| 
| 2) Don't do A for A processing unless the query has four octets, so
| that 10.1.2. is NXDOMAIN but 10.1.2.1 is OK.
| 
| 3) return 10.1.2.0 for dig A 10.1.2

I think I agree with you in that option 2 is the best.

| Note that inet_addr does other surprising things:
| 
| dig +short 4556563
| 0.69.135.19

Yeah, well-known.  That'll also go away with option 2, right?

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to