INN problem
Heath Kehoe
heath.kehoe at intermec.com
Mon Oct 2 02:05:42 UTC 2000
>
>> Ok, you get this error message because it tries to look up your
>> hostname 'linux' in DNS, which fails, because there is no DNS
>> entry for linux.dickmann.de.
>>
>> What do you get when you type the 'hostname' command on your
>> linux box? You should get whatever your hostname is, and not
>> 'localhost'. Some linuxes have their hostname set to 'localhost'
>> by defualt. First, make sure this is not the case for you.
>it says: linux
>
>> There are two ways to fix the INN error:
>>
>> 1) Add your machine 'linux' to the name server for dickmann.de
>> so that you can type 'nslookup linux' and get something that
>> looks like this:
>>
>> prompt$ nslookup linux
>> Name Server: xlink1.xlink.net
>> Address: 193.141.40.1
>>
>> Trying DNS
>> Non-authoritative answer:
>> Name: linux.dickmann.de
>> Address: 1.2.3.4 <--whatever your IP addr is
>i get the correct output!
>
>> 2) Edit your inn.conf, and where it says 'domain:' set it to:
>>
>> domain: dickmann.de
>done
>
>but the problem is still there
>
>Christian
>
There are two possible places where it might by failing.
Try this little program, and tell me what you get:
/* save this message to a file, say hosttest.c */
/* delete everything above this comment block */
/* compile with: cc -o hosttest hosttest.c */
/* run: ./hosttest */
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <errno.h>
extern int h_errno;
main()
{
char buff[256];
struct hostent *hp;
if(gethostname(buff, (int)sizeof buff) < 0) {
printf("gethostname failed: %s\n", strerror(errno));
exit(1);
}
printf("gethostname: got '%s'\n", buff);
if((hp = gethostbyname(buff)) == NULL) {
printf("gethostbyname failed: %s\n", hstrerror(h_errno));
exit(1);
}
printf("gethostbyname: got h_name='%s'\n", hp->h_name);
exit(0);
}
More information about the inn-workers
mailing list