route option only adds route for first IP resolved for a hostname (with many)
Hi James et all,
I have just got this bug report [1]. The problem is: When a hostname is given to the 'route' option, only a route to the first IP address for that hostname is added.
route(8) works the same way, and I don't know if this is really a bug, or The Way is Meant to Be (tm).... Any thoughts?
[1] http://bugs.debian.org/237251
Signature · 5 lines
Alberto Gonzalez Iniesta | BOFH excuse #304: agi@(agi.as|debian.org) | routing problems on the neural net Encrypted mail preferred | Key fingerprint = 9782 04E7 2B75 405C F5E9 0C81 C514 AF8E 4BA4 01C3
Quoted 6 lines · Alberto Gonzalez Iniesta
Hi James et all,
I have just got this bug report [1]. The problem is: When a hostname is given to the 'route' option, only a route to the first IP address for that hostname is added.
Quoted 6 lines
route(8) works the same way, and I don't know if this is really a bug, or The Way is Meant to Be (tm).... Any thoughts?
Hi Alberto!
After reading the bug track, it seems to me that he/she is right, and the --route command should add all the addresses returned by the query. It's not a hard thing to implement, imho.
Seeyou!
Signature · 3 lines
****** JFRH ******
Quoted 12 lines · Juan Rodriguez Hervella
Quoted 11 lines · Alberto Gonzalez Iniesta
Hi James et all,
I have just got this bug report [1]. The problem is: When a hostname is given to the 'route' option, only a route to the first IP address for that hostname is added.
route(8) works the same way, and I don't know if this is really a bug, or The Way is Meant to Be (tm).... Any thoughts?
Quoted 7 lines
Quoted 1 line
Hi Alberto!
After reading the bug track, it seems to me that he/she is right, and the --route command should add all the addresses returned by the query. It's not a hard thing to implement, imho.
Yes, this is a limitation in the current code -- all address resolution in OpenVPN is handled in the getaddr function in socket.c which doesn't (yet) deal with DNS names which resolve to multiple addresses.
James