Re: oninit fails using onsoctcp on linux
Posted in 2006
Topics: Networking & sqlhosts Configuration, Platform-Specific Issues
Anup Nair wrote:
> Try these:
> - Give complete host name (linux4.xxx.xxx)
Did not work.
> - Give ip address instead of the name
Yes! Works!
> - Check if the port is free
Is not used (netstat, telnet)
> - Use a different port
> - Use the port number directly instead of the service name
> sqlhosts:
> ol_idbs onsoctcp 10.1.7.13 1151> - Ping the port to see if it is active
> - Configure firewall to accept connection to this port
Well, the direct ip address works. I will now try to
find out why the hostname cannot be looked up.
Thanks a lot,
R'diger
Hi,
Try the following.
nslookup linux4
Can you see correct ip address ?
And make sure your /etc/resolv.conf and /etc/nsswitch.conf .
In nsswitch.conf are specified
hosts: files dns
Then looking for /etc/hosts, then looking for DNS entry.
Regards.
--
Tsutomu Ogiwara from Tokyo Japan.
>From: Ruediger Maehl <ruediger.maehl@web.de>
>To: informix-list@iiug.org
>Subject: Re: oninit fails using onsoctcp on linux
>Date: Thu, 11 May 2006 13:22:59 +0200
>
>Anup Nair wrote:
>
> > Try these:
> > - Give complete host name (linux4.xxx.xxx)
>Did not work.
>
> > - Give ip address instead of the name
>Yes! Works!
>
> > - Check if the port is free
>Is not used (netstat, telnet)
>
> > - Use a different port
> > - Use the port number directly instead of the service name
> > sqlhosts:
> > ol_idbs onsoctcp 10.1.7.13 1151> > - Ping the port to see if it is active
> > - Configure firewall to accept connection to this port
>
>Well, the direct ip address works. I will now try to
>find out why the hostname cannot be looked up.
>
>Thanks a lot,
>
>R'Eiger
>_______________________________________________
>Informix-list mailing list
>Informix-list@iiug.org
>http://www.iiug.org/mailman/listinfo/informix-list
Hello Tsutomu, > Try the following. > > nslookup linux4 > Can you see correct ip address ? > > And make sure your /etc/resolv.conf and /etc/nsswitch.conf . > In nsswitch.conf are specified > hosts: files dns > Then looking for /etc/hosts, then looking for DNS entry. Very good hint: when I use hosts: files instead of hosts: files dns then it works! Nevertheless, it is a bit strange. Thanks a lot, R'diger PS: Tokyo! The first time I was in Tokyo, I only saw the Ginza, the second time in 2003, I only drove through Tokyo on my way from Gumma to Chiba. I really was very impressed of (what I saw of) Japan!