Hacker Newsnew | past | comments | ask | show | jobs | submit | more theseobosscom's commentslogin

creative!


Even if you remove www it works, i.e. http://ai/


Doesn't work for me (macOS, Firefox)


Works fine for me (macOS, Firefox)


Clicking a link, copy/pasting it, and manually typing it all behave differently. Try typing it.


Works for me on Firefox Android


Works for me on MacOS Chrome


Doesn't work for me on firefox or curl. dig can find it but only with +trace, host reports SERVFAIL.

"Valid domain name" seems a stretch.


Doesn't work for me (Windows, Vivaldi)


try: http://ai. (note the dot on the end)


This one works for me. But I don't get it. Can someone explain? This isn't browser trickery, nslookup succeeds for "ai." but not "ai".

> ai

** UnKnown can't find ai: Non-existent domain

Server: UnKnown

Address: 192.168.86.1

> www.ai

Non-authoritative answer:

Server: UnKnown

Address: 192.168.86.1

Name: www.ai

Address: 209.59.119.34

> ai.

Non-authoritative answer:

Server: UnKnown

Address: 192.168.86.1

Name: ai

Address: 209.59.119.34

>


The period forces it to actually do a lookup. Without it it may be only asking the local dns server or appending the default domain.



http://ai./ as well


Can someone explain to me why this is a valid URL?


>A domain is a non-empty ASCII string that identifies a realm within a network. [RFC1034][1]

>The example.com and example.com. domains are not equivalent and typically treated as distinct.[1]

    When a user needs to type a domain name, the length of each label is
    omitted and the labels are separated by dots (".").  Since a complete
    domain name ends with the root label, this leads to a printed form which
    ends in a dot.  We use this property to distinguish between:
    
       - a character string which represents a complete domain name
         (often called "absolute").  For example, "poneria.ISI.EDU."
    
       - a character string that represents the starting labels of a
         domain name which is incomplete, and should be completed by
         local software using knowledge of the local domain (often
         called "relative").  For example, "poneria" used in the
         ISI.EDU domain.
    
    Relative names are either taken relative to a well known origin, or to a
    list of domains used as a search list.  Relative names appear mostly at
    the user interface, where their interpretation varies from
    implementation to implementation, and in master files, where they are
    relative to a single origin domain name.  The most common interpretation
    uses the root "." as either the single origin or as one of the members
    of the search list, so a multi-label relative name is often one where
    the trailing dot has been omitted to save typing.[2]
[1] https://url.spec.whatwg.org/#concept-domain

[2] https://www.rfc-editor.org/rfc/rfc1034


This is blowing my mind.


That works for me in Safari on macOS.


Doesn’t work for me on iOS Safari.



Works for me—make sure you're getting http, not https, though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: