socket communication and DNS
- From: "giangiammy" <giangiammy@xxxxxxxxx>
- Date: 23 Aug 2006 00:10:21 -0700
hi all,
I have a program writte in C which opens a socket and communicate with
another PC in my internal LAN using the numeric IP in the privare range
172.16.31.x
In the same client I have a file resolv.conf, where I set ad nameserver
my
lan server: I should not use this info in my program, as I use a numeri
IP.
The problem is than when the LAN server shutdowns, my program sops
communicating.
(if I remove the file resolv.conf, it continue to work, with or without
lan server)
I cannot understand this behaviour: why this program needs a DNS if
uses numeric IP?
does the C library need a DNS? it doesn't seem so as if I remove the
resolv.conf file
everything works.
any idea?
thanks
giammy
.
- Follow-Ups:
- Re: socket communication and DNS
- From: David Schwartz
- Re: socket communication and DNS
- Prev by Date: PCI Driver - Read/Write to Base Address
- Next by Date: booting 2.6.13 kernel on ixp425 machine
- Previous by thread: PCI Driver - Read/Write to Base Address
- Next by thread: Re: socket communication and DNS
- Index(es):
Relevant Pages
|