Hello, I have an idea, is this a good list for it? I hope it won't be offtopic. So... it would be nice, if you change the host resolver code to this: it should lookup MX records like mail transport agents, but only if A record for host doesn't present. Demonstration: foo.org MX 7 bigboy.foo.org bigboy.foo.org A 1.2.3.4 west.foo.org MX 1 mail.fooisp.net west.foo.org MX 7 bigboy.foo.org west.foo.org A 1.2.3.6 1st case: ssh bigboy.foo.org only A record presents -> good 2nd case: ssh west.foo.org A record presents -> no MX lookup (compatibility) -> good 3rd case: ssh foo.org A record doesn't present -> MX lookup -> connect to bigboy -> short, comfortable, *cool* If you don't like new things, let make it configurable, so the user should decide about using this function in configuration file of ssh client. Thank for your attention, -- Pinter uber alles --------------------------------------------------------------------- http://www.netposta.net NetPosta, E-m at il ingyen!
Hi, On Thu, Aug 02, 2001 at 10:18:15PM +0200, Pinter Jozsef wrote:> 3rd case: ssh foo.org > A record doesn't present -> MX lookup -> connect to bigboy > -> short, comfortable, *cool*MXes are for *mail*. Nothing else. If you want an A, add an A. gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany gert at greenie.muc.de fax: +49-89-35655025 gert.doering at physik.tu-muenchen.de
On Thu, 2 Aug 2001, Pinter Jozsef wrote:> So... it would be nice, if you change the host resolver code to this: > it should lookup MX records like mail transport agents, but only if A > record for host doesn't present.this is really a bad idea. for the purpose I think you're looking for a solution to, one could consider adding support for SRV-records (as described in RFC 2782). example: _ssh._tcp.example.com. IN SRV 0 0 1022 host1.example.com. IN SRV 10 0 2022 host2.example.com. in this example 'ssh example.com' would first try host1.example.com port 1022 and then host2.example.com port 2022. jakob
>On Thu, 2 Aug 2001, Pinter Jozsef wrote: > >> So... it would be nice, if you change the host resolver code to this: >> it should lookup MX records like mail transport agents, but only if A >> record for host doesn't present. > >this is really a bad idea. for the purpose I think you're looking for aNot only is is a bad idea because it is abuse of the DNS it would mean a pretty serious restructuring of the code because OpenSSH does NOT call DNS it calls the getXbyY calls provided by the OS and they do what ever that OS wants. On Solaris the look at nsswitch.conf on OpenBSD resolv.conf might say to use nis. -- Darren J Moffat