jsloan wrote:
Ok, here is what I got from 'par'
9mS dbgif( 536): read(5, "nameserver\t192.168.1.1\n", 4096) = 23
9mS dbgif( 536): read(5, 0x10134b18, 4096) = 0
9mS dbgif( 536): close(5) OK
9mS dbgif( 536): gethostname(indy64, 256) OK
9mS dbgif( 536): getpid() = 536 ppid=535
10mS dbgif( 536): getpid() = 536 ppid=535
10mS dbgif( 536): time() = 1355791715
10mS dbgif( 536): getdomainname((null), 256) OK
10mS dbgif( 536): socket(PF_INET, SOCK_DGRAM, 0) = 5
10mS dbgif( 536): connect(5, <00 02 00 35 c0 a8 01 01 00 00 00 00 00 00 00 00>, 16) OK
10mS dbgif( 536): send(5, <00 01 01 00 00 01 00 00 00 00 00 00 06 69 6e 64>..., 24, 0) = 24
11mS dbgif( 536): select(6, IN:set=5 OUT:set=5, 0, 0, sec=5 usec=0) = 1
27mS dbgif( 536): recv(5, <00 01 81 83 00 01 00 00 00 01 00 00 06 69 6e 64>..., 1024, 0) = 99
28mS dbgif( 536): close(5) OK
28mS dbgif( 536): open(/usr/lib/locale/C/LC_MESSAGES/uxsyserr, O_RDONLY, 01752601414) errno = 2 (No such file or directory)
So it finds hostname just fine, and then correctly returns null for domainname, since there is none.
While gethostbyname and getdomainname are both OK, it still proceeds to contact a DNS server (0x35 is 53 decimal, which is DNS,
0xc0 0xa8 0x01 0x01 is your configured name server. Not sure what it tries (forward or reverse lookup), you may have to check with tcpdump, or a higher log level for your DNS, or just make sure that both forward and reverse lookups work for the indy.
Quote:
But it seems to fail on:
open(/usr/lib/locale/C/LC_MESSAGES/uxsyserr, O_RDONLY, 01752601414) errno = 2 (No such file or directory)
and indeed, I do not have a:
/usr/lib/locale/C/LC_MESSAGES
directory at all ... should I ?
That's most likely OK. There are no translations for this text, so the file for a translation table to the "C" language (locale) doesn't exist. This just means that the message is printed as is - "gethostbyname call failed",