• Spruce1538@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    How can a server know exactly what domain name they were accessed from or if they were accessed directly through IP?

    To me, dns was just words->IP and then the computer connects using the IP so how would the server know what domain name was used

    • grandkaiser@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      They don’t know unless the DNS server tells them. For example, a very popular webhost Akamai uses a complex DNS + web hosting suite (DNS edgesuit to be exact) to send that type of data to the web servers. It can also allow for many many other features.