|
Re: RE: qnet over ip without dns
|
07/21/2009 4:28 PM
post34268
|
Re: RE: qnet over ip without dns
> I haven't had any luck yet... but i realized i had a messed up qnet_hosts file
> ... at any rate I wanted to let you know that if you use "resolve=file"
> without a /etc/qnet_hosts file being present I ended up with an io-net core
> dump.... I'm assuming that the code loading that file is common for both io-
> pkt and io-net. An error message would probably be nicer then the core dump.
>
> hopefully I can get something working soon.
The "resolve=file" maybe a little bit stretch.
You should still be able to use "bind=ip,resolve=dns" in your case. "resolve=dns" means QNET will use a (basically)
gethostbyname() to resolve the ip address from a given name. As long as you have a /etc/hosts to satisfy this resolving,
no one says you must have a name server.
1) make sure the /etc/hosts is set up correct on both machines.
2) start io-net -p tcpip (without QNET), settle the IP network first. (IP address, your own host name/domain all must be
properly set)
3) make sure IP resolve will go through /etc/hosts first. By specifying:
# setconf CS_RESOLVE "lookup file bind"
4) make sure you can ping each other with the name in /etc/hosts
5) load qnet.
# mount -Tio-net -o "bind=ip,resolve=dns" npm-qnet.so
Hopefully this could get you going.
-xtang
|
|
|