Re: Problem with hostnames starting with hyphens, stars, etc. (but works fine on windows!)



Hello,

Dav Clark a écrit :
[...]
In any case, I've tried fetching the URLs using firefox and wget from a
windows machine, and that works fine. Under linux, I've used lynx,
wget and telnet to port 80 (not gonna set up X11 just to debug this
issue!). Always I get an error:

lynx: Unable to connect to remote host.
telnet/wget: Name or service not known
[...]
Finally, a list of example URLs that I'm working with:

http://*rommi*.piczo.com/?cr=4&rfm=y
http://-------sweetly-------.piczo.com/?cr=6&rfm=y

These hostnames are just invalid.
From RFC 1912 - Common DNS Operational and Configuration Errors :

DNS domain names consist of "labels" separated by single dots. The
DNS is very liberal in its rules for the allowable characters in a
domain name. However, if a domain name is used to name a host, it
should follow rules restricting host names. Further if a name is
used for mail, it must follow the naming rules for names in mail
addresses.

Allowable characters in a label for a host name are only ASCII
letters, digits, and the `-' character. Labels may not be all
numbers, but may have a leading digit (e.g., 3com.com). Labels must
end and begin only with a letter or digit.
.



Relevant Pages

  • Expect, telnet, frozen console.
    ... telnet into remote host, provide username/password, surrender control to ... This script will eventually be tied into /etc/inittab so that it ... app called 'loe' which presents a login screen in 80x24 ASCII a la ...
    (comp.lang.tcl)
  • Re: rlogin
    ... login the server using telnet, rsh, rlogin and also ssh. ... Telnet does not provide any protection. ... We have only 1 host system. ...
    (comp.unix.aix)
  • Re: unable to send outbound mail using outlook
    ... telnet moses.stphilipchurch.com 25 ... Connecting To moses.stphilipchurch.com...Could not open connection to the ... on port 25: Connect failed ... Connecting To 66.126.247.115...Could not open connection to the host, ...
    (microsoft.public.exchange.admin)
  • Re: No route to host
    ... route to host" is returned. ... three telnet tests to try and the results are below. ... Connection closed by foreign host. ...
    (comp.mail.sendmail)
  • Re: How do you telnet from 1 host to another using Telnet Module
    ... help you more in understanding, from my limited experience with using this module I have managed to successfully telnet from the host that my script executes on to a remote host, I can do this ok using the ...
    (comp.lang.perl.modules)