Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problem with hostnames starting with hyphens, stars, etc. (but works fine on windows!)

Reply
Thread Tools Display Modes

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

 
 
Dav Clark
Guest
Posts: n/a

 
      10-31-2006, 03:40 PM
So, I'm having trouble fetching pages from a set of URLs, but only
under linux (Red Hat FC4, FC5, and ES3) not under Windows XP Pro (it
works even under cygwin in Windows). Admittedly, the URLs are poorly
chosen, and the content is garbage. But it's for a customer, and I
have no control over that.

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

but, host (mind your "--" to stop argument processing) reveals:

-zero.piczo.com has address 64.124.63.70

And I can telnet, wget, lynx, etc. fine to that numeric address.

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

I'm totally stumped on this one...

Best,
Dav

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      10-31-2006, 03:59 PM
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.
 
Reply With Quote
 
Dav Clark
Guest
Posts: n/a

 
      10-31-2006, 05:21 PM
I recognize that fact. This, however, does not change the fact that
someone outside of my control wishes for me to deal with these invalid
URLs. And, currently, I can't do this on anthing but a windows
machine.

Surely I should be able to co-erce linux into using these URLs (which
do actually resolve with host)?

DC

Pascal Hambourg wrote:

> 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.


 
Reply With Quote
 
Johny be Good
Guest
Posts: n/a

 
      10-31-2006, 05:33 PM
On Tue, 2006-10-31 at 10:21 -0800, Dav Clark wrote:

> Surely I should be able to co-erce linux into using these URLs (which
> do actually resolve with host)?


You are right, sure you could "co-erce" GNU/Linux to use it, ... you
have all sources available, so shoot:

- bind
- mozilla
- glibc

When you finish "co-ercing" those get back here, I give you more so you
can use http://*g'o`'o**!*#le.c0m !



> DC
>
> Pascal Hambourg wrote:
>
> > 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.

>


 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      11-02-2006, 12:29 PM

Johny be Good wrote:
> On Tue, 2006-10-31 at 10:21 -0800, Dav Clark wrote:
>
> > Surely I should be able to co-erce linux into using these URLs (which
> > do actually resolve with host)?

>
> You are right, sure you could "co-erce" GNU/Linux to use it, ... you
> have all sources available, so shoot:
>
> - bind
> - mozilla
> - glibc
>
> When you finish "co-ercing" those get back here, I give you more so you
> can use http://*g'o`'o**!*#le.c0m !




That's lot of work!


--
Raqueeb Hassan
Bangladesh

 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-02-2006, 02:18 PM

"Dav Clark" <(E-Mail Removed)> writes:
> Pascal Hambourg wrote:
>
> > These hostnames are just invalid.


> I recognize that fact. This, however, does not change the fact that
> someone outside of my control wishes for me to deal with these invalid
> URLs. And, currently, I can't do this on anthing but a windows
> machine.
>
> Surely I should be able to co-erce linux into using these URLs (which
> do actually resolve with host)?


Resolve with host, use the IP addresses?
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2008 Server - unable to copy files from server to another machine; reverse works fine Ziga Jakhel Windows Networking 0 06-16-2008 10:02 AM
Network not starting properly, but running fine after restart inuy4sha Linux Networking 0 03-23-2008 10:20 PM
'mount -t cifs' only works with IP addresses, not with hostnames Jukka Aho Linux Networking 2 03-08-2007 12:38 AM
Problems with WPA - WEP works fine Andrew Sayers Home Networking 4 12-11-2005 02:16 PM
Other than POP3 & SMTP, Windows email works just fine Holliston Perni Windows Networking 0 09-15-2005 03:42 PM



1 2 3 4 5 6 7 8 9 10 11