#2243: parse hostname
-------------------------+--------------------------------------------------
 Reporter:  Alien_Huker  |       Owner:       
     Type:  bug          |      Status:  new  
 Priority:  minor        |   Milestone:  1.3.6
Component:  other        |     Version:  1.3.5
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by Chionsas):

 '''There is no good way of getting a domain name from the hostname.'''
 Period.

 Browsers do this by checking against "effective tld names" (aka "public
 suffixes"). [http://publicsuffix.org There's a project by Mozilla for
 that] ([http://mxr.mozilla.org/mozilla-
 central/source/netwerk/dns/effective_tld_names.dat?raw=1 direct link to
 the list]).

 There are numerous implementations using the publicsuffix.org's list
 (Python module: [http://pypi.python.org/pypi/publicsuffix]), but IMHO that
 would be overkill.

 '''I suggest removing this feature altogether and always displaying the
 full hostname.'''
 There are no good alternatives short of checking the DNS (again,
 ''overkill'').

 Current code is buggy as hell (it would fail at the most basic
 {{{DOMAIN.edu.au}}}, not even going into {{{DOMAIN.pvt.k12.ma.us}}}
 territory).

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2243#comment:4>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to