Skip to contentSkip to conversation

FQDN for routes should expand to all IPs

Openvpn-devel Stefan Monnier 4 participants 6 messages Oct 17, 2009 – Oct 26, 2009

lore
Share & tools
lore
#1 lore raw

Ping?

Stefan

Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Stefan" == Stefan Monnier <[email protected]...> writes:

I've posted a bug report at:
http://sourceforge.net/tracker/index.php?func=detail&aid=2872760&group_id=48978&atid=454719

since since I haven't heard any reaction for almost 2 weeks now (although the report includes a patch which works well, at least for me), I'm wondering whether it was the right place. Should I send my patches here instead?

Stefan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

#2 lore raw
In reply to Stefan Monnier
Quoted 8 lines · Stefan Monnier

I've posted a bug report at:

http://sourceforge.net/tracker/index.php?func=detail&aid=2872760&group_id=48978&atid=454719

since since I haven't heard any reaction for almost 2 weeks now (although the report includes a patch which works well, at least for me), I'm wondering whether it was the right place. Should I send my patches here instead?

This is the right place to submit bug reports.

Having said that, your bug report seems more like a feature request since routing commands/APIs generally do not support DNS A-record expansion as a standard feature.

It's an interesting idea though, and one that makes sense, but I haven't seen any other requests for it.

James

#3 lore raw
Quoted 1 line

This is the right place to submit bug reports.

Thanks.

Quoted 3 lines

Having said that, your bug report seems more like a feature request since routing commands/APIs generally do not support DNS A-record expansion as a standard feature.

I understand that it's halfway between feature request and bugreport. The current code does explicitly allow FQDN in route commands and its implementation just happens to choose one (randomly) one IP rather than to select all of them. This basically means that such route commands only work reliably for FQDNs that have only one IP. This is a restriction that iseems to come just from the implementation rather than from a design choice: the FQDN-to-IP mapping is done by reusing the code used elsewhere, but that "elsewhere" is when we want to connect to that FQDN, so in that case selecting all IPs is nonsenscal and we need to choose one (tho we may want to cycle in case of connection failure).

So I do think it's a bug, but I understand that it can be considered as a feature to extend route commands to support multiple-IP FQDNs.

In either case, I'd love to hear comments about my patch (and even more so to have it be included, since I rely heavily on this feature).

Quoted 2 lines

It's an interesting idea though, and one that makes sense, but I haven't seen any other requests for it.

I use it for example to let clients connect to portal.acm.org (which has 2 IPs) via the VPN so as to benefit from the site-wide digital-library access we have. Without this feature, either the redirection works unreliably (half the times, the connection is done via the VPN the other half it's done directly), or I'd have to redirect all traffic (causing a significant load increase on the VPN server, increase of bandwidth use, and general slowdown for the clients), or hard-code the IPs and try and detect when they change.

Stefan

#4 lore raw
In reply to James Yonan
Quoted 10 lines · James Yonan
Quoted 8 lines · Stefan Monnier

I've posted a bug report at:

http://sourceforge.net/tracker/index.php?func=detail&aid=2872760&group_id=48978&atid=454719

since since I haven't heard any reaction for almost 2 weeks now (although the report includes a patch which works well, at least for me), I'm wondering whether it was the right place. Should I send my patches here instead?

Quoted 8 lines

This is the right place to submit bug reports.

Having said that, your bug report seems more like a feature request since routing commands/APIs generally do not support DNS A-record expansion as a standard feature.

It's an interesting idea though, and one that makes sense, but I haven't seen any other requests for it.

Hi James,

Just for the record, the same feature was requested in Debian [1] some 5 years ago :)

Regards,

Alberto

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237251

Signature · 5 lines
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
agi@(inittab.org|debian.org)| en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 9782 04E7 2B75 405C F5E9  0C81 C514 AF8E 4BA4 01C3
#5 lore raw
In reply to James Yonan
Quoted 3 lines · James Yonan

Having said that, your bug report seems more like a feature request since routing commands/APIs generally do not support DNS A-record expansion as a standard feature.

My favorite firewall/packet redirector, pf, does. (It runs on the BSDS.) I find that using DNS names makes configuration files very, very, much more readable.

Of course care is required to ensure that the names will resolve whenever required. The basic trick is to run a slave nameserver for those zones you care about on the firewall/router, be sure that the slave server expiration is "long enough", and never use dns names that are not
resolvable by the local namserver. So long as your
nameserver is working you have config files that are human readable -- a trade off I find well worth it.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein