Allmän information om DNS systemet (engelska)

The Domain Name System (DNS) is a hierarchical and distributed database meant to translate host names to IP addresses, and IP addresses to host names.

Each time a user sends an email or go to a web site, by entering a domain name, the user’s computer uses DNS to find the correct server destination. Thus, DNS is perhaps the most important component of the Internet.

Introduction

Briefly DNS works so that when a user enters an URL (e.g. http://www.example.com) in their web browser, the operating system sends a DNS query to the computer’s specified DNS server (usually administered by the user’s ISP), often through a local firewall or gateway.

The DNS server first checks if the domain name (e.g. www.example.com) is saved in the memory (called cache), in case some other user (at the same ISP) recently asked for that domain name.

If the answer is cached, the DNS server will return the IP address. If not, the DNS server will forward the query to the domain name’s authoritative DNS servers, receiving the response, saving it to the cache and returning to the user’s operating system.

Hierarchical Database

As a hierarchical database, data is stored in a tree structure. Basically from the root zone down to the top-level domain zone (e.g. .com, .net), further to the second-level domain zone (e.g. registrera-doman.com), third-level domain zone (e.g. se.registrera-doman.com) and fourth-level domain zone (e.g. www.se.registrera-doman.com) and so on.

Subdomain

Regarding subdomains, every domain name is in fact a subdomain of the level above, e.g. www.registrera-doman.com is a subdomain of registrera-doman.com, as registrera-doman.com is a subdomain of .com, as .com is a subdomain of the root zone. The only domain that is in fact not a subdomain is the root domain itself. However in an everyday context, a subdomain is often described as a domain below the second-level domain (SLD) – e.g. www.registrera-doman.com.

Distributed Database

As a distributed database, the responsibility of DNS is delegated to a huge amount of servers, called name servers, on the Internet.

The domain name system’s root zone has currently 13 authoritative name servers responsible to delegate authoritative name servers for each top-level domain (TLD). The TLD has a set of name servers (depending on TLD) responsible to delegate name servers for each second-level domain. The second level name servers are in turn, responsible for the third level name servers.

Domain name: www.registrera-doman.com

TLD: .com

Second level: registrera-doman.com

Third level: www

Resolver

A DNS resolver is a client-side application responsible for querying authoritative DNS servers recursively for translation of domain names or IP addresses.

In general there are two kind of resolvers, the recursive resolver and the stub resolver.

Recursive Resolver

To improve the performance and reduce the traffic over the Internet between users and authoritative name servers, recursive DNS resolvers is almost always used. A recursive resolver handles the request from the user’s computer and then queries recursively from the root name servers until an answer is found. The answers is then provided to the user, hence the load is balanced between several parts on the way – which reduces traffic and improves the performance for the end-user.

The performance is greatly improved by caching at the recursive resolver.

Most commonly the recursive DNS resolver is provided by the Internet Service Provider (ISP), which is queried by the local stub resolver at the user’s computer.

Stub Resolver

Most computers are using a stub resolver locally which only sends the query forward to the recursive resolver. The stub resolver is a main component in most common operating system, and the user is seldom aware of that the application exists – it just works.

Caching

To improve efficiency at DNS resolvers, the resolver is programmed to keep an authoritative answer in a type of memory – called caching. This means that when receiving a question of a DNS record already known, the resolver can answer this directly to the user, without the need to query all responsible name servers recursively, which reduces the response time for the user.

This efficiency does however comes at a cost. An answer received from a recursive resolver can be wrong, if the data has been changed at the authoritative name servers since cached by the resolver. The length of the cache is determined by the DNS record value TTL.

TTL

The DNS record value TTL (time-to-live) determines for how long a DNS record should be cached at a recursive resolver. The value is defined in seconds and is commonly set to 86400 (24h), which is considered a good balance between performance and manageability.

A too low value can effect the performance negatively, since the response time in this case will be longer (for the user). Also if the authoritative name server temporarily doesn’t respond, no response will be returned to the user, but with a higher TTL this may not occur. However, in this case, the problem isn’t really the TTL but the authoritative name server – but nonetheless it can become useful.

A too high value will effect the manageability negatively, since it takes a longer time for a change of record to be published all over the Internet. Thus it’s common practice to lower the TTL value in good time before a planned change.

Domain Name Registration Services

Domain name registration services are services offered by a domain name registrar to domain name holders, and includes services such as domain registration, domain transfer, domain delegation, domain renewal and domain owner change. Domain registrar’s are operating according to the registry of the top-level domain (e.g. .com, .net), and are assigned by the registry.

Domain Registration

Domain registration is a domain service registering a domain name at a top-level domain (e.g. .com, .net). The registration includes providing contact information about the holder of the domain name, and the domain name’s name servers.

The procedure may differ depending on top-level domain and domain registrar.

Domain Transfer

Domain transfer is a domain service transferring a domain name from one registrar to another – thus changing the provider of that domain’s registration services. The process does not affect the operation of the domain name.

The procedure may differ depending on top-level domain and domain registrar.

Domain Delegation

Domain delegation is a domain service changing name servers of a domain name.

The procedure may differ depending on top-level domain and domain registrar.

Domain Renewal

Domain renewal is a domain service extending the registration period of a domain name, mostly with one year.

The procedure may differ depending on top-level domain and domain registrar.

Domain Owner Change

Domain owner change is a domain service changing the current owner of a domain name to another legal entity. Some registries and registrars offer this as a free service, however administrative fees are not unusual.

See Also

Further Reading

 

  • 0 användare blev hjälpta av detta svar
Hjälpte svaret er?

Relaterade artiklar

Erbjuder ni stöd för DNSSEC

Ja det vi gör det. Alla toppdomäner som stödjer dnssec och som registreras genom oss kan användas...

DNS Resource Record Types

The Domain Name System (DNS) has many different types of records, meant to define and map...

Jag har ändrat min DNS för min domän, men ingenting händer Min ändring märks inte Varför?

There are few reason why you might not see changes you make to your domain's DNS...

Hur gör jag för att använda min domän till ett webbhotell?

För att koppla er domän till ett webbhotell måste er domän peka på...

Kan jag sätta upp flera MX?

Det går att sätta upp flera MX, det går dock inte att sätta upp ett eget...


WebbMotell - Det prisvärda alternativet för era hemsidor

Grymt Koncept! Vårt Premium webbhotellkonto är något utöver det vanliga. Ni får en helt egen server för er själv. Ni konkurrerar inte med någon annan om CPU och minne, allt är ert! Och detta till ett pris som motsvarar ett vanligt webbhotell.

Vi erbjuder också två instegskonton, Start och Standard från 99 kr per ÅR!. Dessa är vanliga webbhotellkonton där ni delar resurser som CPU och minne/RAM med andra kunder.

Beställ WebbMotell Här.

Lättanvänd och kraftfull

Vi har utvecklat en egen kontrollpanel för våra WebbMotellplaner. Med den går det att skapa och ta bort webbplatser, e-postkonton, administrera DNS, installera programvara med Installatron, ansluta sig med FTP till webbplatsen och en del till.

Den är så enkel att använda att i stort sett vem som helst klarar av att hantera sitt webbmotellkonto. För det absolut mesta ni behöver göra räcker det med vår Enkla kontrollpanel.

För de mer avancerade planerna ingår utöver den enkla kontrollpanelen den mer avancerade kontrollpanelen ISPConfig. Detta är en kontrollpanel som har sina rötter i Tyskland och utvecklingen av denna drivs också främst från Tyskland. Det innebär att den i mångt och mycket är utvecklad med europeiska ögon, vilket inte minst är viktigt ur ett GDPR perspektiv.

ISPConfig är en avancerad kontrollpanel med vilken man kan utföra komplexa inställningar, ofta inställningar som kräver lite kännedom om teknik. För den tekniskt bevandrade är ISPConfig ett grymt bra verktyg.

Även den mindre tekniskt insatte kan självklart använda ISPConfig. Inte allt är komplext och svårt, snarare så att det mesta är enkelt och det finns möjligheter till att göra mer komplexa inställningar. Vi har skapat en Supportportal som innehåller artiklar och hjälp. Det går också att ställa frågor i denna portal, frågor som vår supportpersonal då kommer att besvara

Utvecklarvänlig

Våra avancerade webbmotellplaner är perfekt för webbutvecklare. Ni har tillgång till ssh, ni kan installera ramverk, Laravel, CakePHP, Symfony, Zend Framework, Smarty osv osv. Composer finns också.

Vidare kan ni lägga in egna Apache- och PHP-direktiv för varje enskild webbplats.

Vi erbjuder också staging för WordPress utveckling. Ni kan ändra er WordPress, t.ex. ändra teman, installera moduler, utan att era besökare ser det. Era besökare ser bara er ursprungliga webbplats. När ni är nöjd med alla ändringar, då släpper ni enkelt era förändringar till produktionssidan och då är det det som er besökare ser.

Alla applikationer som ni installerar med installatron kan ni närsomhelst ta en ögonblicksbild av. Det kan vara bra om någon förändring ni gjort inte fungerade och ni behöver backa.

Väljer ni en plan med egen server då får ni också tillgång till redis cache. Ni kan själv använda det i er egen programutveckling, eller ni kan använda färdiga plugins till t.ex. WordPress. Ni kan då bygga ultrasnabba webbsidor som hämtar sitt innehåll från minnet istället för disk. För WordPress kan detta få en oerhörd betydelse.

Våra servrar är optimerade för hemsidor byggda med php, vi använder Apache med event-mpm och php-fpm. Vi erbjuder emellertid Nginx (Engine X) till våra Premium planer, för hemsidor som har oerhört många besökare och då behöver extra prestanda.

Beställ WebbMotell Här.