Reverse DNS lookup

In computer networks, a reverse DNS lookup or reverse DNS resolution (rDNS) is the querying technique of the Domain Name System (DNS) to determine the domain name associated with an IP address – the reverse of the usual "forward" DNS lookup of an IP address from a domain name.[1] The process of reverse resolving of an IP address uses PTR records. rDNS involves searching domain name registry and registrar tables. The reverse DNS database of the Internet is rooted in the .arpa top-level domain.

Although the informational RFC 1912 (Section 2.1) recommends that "every Internet-reachable host should have a name" and that "for every IP address, there should be a matching PTR record," it is not an Internet Standard requirement, and not all IP addresses have a reverse entry.

Historical usage

The modern "reverse DNS lookup" should not be confused with the now-obsolete "inverse query" (IQUERY) mechanism specified in RFC 1035:

Inverse queries take the form of a single resource record (RR) in the answer section of the message, with an empty question section. The owner name of the query RR and its time to live (TTL) are not significant. The response carries questions in the question section which identify all names possessing the query RR which the name server knows. Since no name server knows about all of the domain namespace, the response can never be assumed to be complete. Thus inverse queries are primarily useful for database management and debugging activities. Inverse queries are not an acceptable method of mapping host addresses to host names; use the in-addr.arpa domain instead.[2]

The IQUERY message type was always "optional"[2] and "never achieved widespread use";[3] it was "permanently retired"[3] in 2002 with the adoption of RFC 3425.

Implementation details

IPv4 reverse resolution

Reverse DNS lookups for IPv4 addresses use the special domain in-addr.arpa. In this domain, an IPv4 address is represented as a concatenated sequence of four decimal numbers, separated by dots, to which is appended the second level domain suffix .in-addr.arpa. The four decimal numbers are obtained by splitting the 32-bit IPv4 address into four octets and converting each octet into a decimal number. These decimal numbers are then concatenated in the order: least significant octet first (leftmost), to most significant octet last (rightmost). It is important to note that this is the reverse order to the usual dotted-decimal convention for writing IPv4 addresses in textual form.

For example, to do a reverse lookup of the IP address 8.8.4.4 the PTR record for the domain name 4.4.8.8.in-addr.arpa would be looked up, and found to point to dns.google.

If the A record for dns.google in turn pointed back to 8.8.4.4 then it would be said to be forward-confirmed.

Classless reverse DNS method

Historically, Internet registries and Internet service providers allocated IP addresses in blocks of 256 (for Class C) or larger octet-based blocks for classes B and A. By definition, each block fell upon an octet boundary. The structure of the reverse DNS domain was based on this definition. However, with the introduction of Classless Inter-Domain Routing, IP addresses were allocated in much smaller blocks, and hence the original design of pointer records was impractical, since autonomy of administration of smaller blocks could not be granted. RFC 2317 devised a methodology to address this problem by using CNAME records.

IPv6 reverse resolution

Reverse DNS lookups for IPv6 addresses use the special domain ip6.arpa (previously ip6.int[4]). An IPv6 address appears as a name in this domain as a sequence of nibbles in reverse order, represented as hexadecimal digits as subdomains. For example, the pointer domain name corresponding to the IPv6 address 2001:db8::567:89ab is b.a.9.8.7.6.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.

Multiple pointer records

While most rDNS entries only have one PTR record, DNS does not restrict the number. Multiple PTR records are used, for example, when a web server supports many virtual hosts— i.e. multiple hostnames then resolve to a single address, and multiple hostnames will be returned for a PTR lookup for that shared address. However, DNS lookups typically occur over UDP, and since UDP has a limited message size, in extreme cases, multiple PTRs could cause a DNS response to exceed those UDP limits.

Records other than PTR records

Record types other than PTR records may also appear in the reverse DNS tree. For example, encryption keys may be placed there for IPsec, SSH and IKE. DNS-Based Service Discovery uses specially-named records in the reverse DNS tree to provide hints to clients about subnet-specific service discovery domains.[5] Less standardized usages include comments placed in TXT records and LOC records to identify the geophysical location of an IP address.

Uses

The most common uses of the reverse DNS include:

  • The original use of the rDNS: network troubleshooting via tools such as traceroute, ping, and the "Received:" trace header field for SMTP e-mail, web sites tracking users (especially on Internet forums), etc.
  • One e-mail anti-spam technique: checking the domain names in the rDNS to see if they are likely from dialup users, or dynamically assigned addresses unlikely to be used by legitimate mail servers. Owners of such IP addresses typically assign them generic rDNS names such as "1-2-3-4-dynamic-ip.example.com." Some anti-spam filters assume that email that originates from such addresses is likely to be spam, and may refuse connection.[6][7]
  • A forward-confirmed reverse DNS (FCrDNS) verification can create a form of authentication showing a valid relationship between the owner of a domain name and the owner of the server that has been given an IP address. While not very thorough, this validation is strong enough to often be used for whitelisting purposes, since spammers and phishers usually cannot achieve forward validation when they use zombie computers to forge domain records.
  • System logging or monitoring tools often receive entries with the relevant devices specified only by IP addresses. To provide more human-usable data, these programs often perform a reverse lookup before writing the log, thus writing a name rather than the IP address.

References

  1. ^ "Reverse DNS". Cloudflare. Archived from the original on 30 March 2019. Retrieved 25 July 2019. A reverse DNS lookup is a DNS query for the domain name associated with a given IP address. This accomplishes the opposite of the more-commonly-used forward DNS lookup, in which the DNS is queried to return an IP address.
  2. ^ a b "RFC 1035 — Domain names - implementation and specification". November 1987. Retrieved 2017-12-28.
  3. ^ a b "RFC 3425 — Obsoleting IQUERY". November 2002. Retrieved 2017-12-28.
  4. ^ G. Huston (August 2005). Deprecation of "ip6.int". Network Working Group IETF. doi:10.17487/RFC4159. BCP 109. RFC 4159.
  5. ^ S. Cheshire; M. Krochmal (February 2013). DNS-Based Service Discovery. IETF. sec. 11. doi:10.17487/RFC6763. ISSN 2070-1721. RFC 6763.
  6. ^ "FAQs | Deliverability, DNSBLs, Malware & reputation data". The Spamhaus Project. Retrieved May 28, 2024.
  7. ^ "reference page from AOL". Archived from the original on December 10, 2006. Retrieved May 28, 2024.

Read other articles:

Alexandre Edmond Becquerel Alexandre Edmond Becquerel (1820-1891) adalah seorang fisikawan berkewarganegaraan Prancis. Ia dikenal atas gagasan mengenai pengetahuan atas bahan-bahan yang dapat menampilkan fenomena luminesensi dan efek fotovoltaik. Edmond Becquerel merupakan penemu dari sel surya sederhana yang mampu mengubah intensitas cahaya menjadi energi listrik dari elektroda berbahan perak klorida dan perak bromida. Keluarga Alexandre Edmond Becquerel merupakan anak dari seorang fisikawan...

 

CornerstoneLagu oleh Arctic Monkeysdari album HumbugDirilis16 November 2009 (2009-11-16)FormatDigital download107GenrePsychedelic popneo-psychedeliaDurasi3:17LabelDominoPencipta Jamie Cook Matt Helders Nick O'Malley Alex Turner ProduserJames FordMusic videoCornerstone di YouTube Cornerstone adalah sebuah lagu dari band indie rock Inggris Arctic Monkeys, dirilis sebagai single kedua dari album ketiga mereka Humbug. Lagu ini dirilis pada 16 November 2009. Seperti single sebelumnya Crying L...

 

IcelandInformationAssociationIcelandic Handball AssociationColours 1st 2nd ResultsIHF U-21 World ChampionshipAppearances12 (First in 1979)Best result Third place (1993, 2023)European Junior ChampionshipAppearances5 (First in 2004)Best result7th place (2018) Last updated on Unknown. The Iceland national junior handball team is the national under-21 handball team of Iceland. Controlled by the Icelandic Handball Association, it represents Iceland in international matches.[1] In 1993, the...

Yusni AntemasLahir(1922-04-22)22 April 1922Amuntai, Hindia Belanda(kini Kabupaten Hulu Sungai Utara)Meninggal12 September 2013(2013-09-12) (umur 91)Amuntai, Hulu Sungai UtaraNama lainAnggraini AntemasPekerjaanWartawan, sastrawan Yusni Antemas (22 April 1922 – 12 September 2013) adalah seorang wartawan dan sastrawan Kalimantan Selatan. Ia populer dengan nama pena Anggraini. Selain sebagai wartawan dan sastrawan, ia juga dikenal sebagai sebagai sejarawan, sekaligus pe...

 

Japanese video game designer Yoshio Sakamoto坂本 賀勇Sakamoto at the 2010 Game Developers ConferenceBorn (1959-07-23) July 23, 1959 (age 64)Nara Prefecture, JapanAlma materOsaka University of ArtsOccupation(s)Video game designer, director, producerYears active1982–presentEmployerNintendoNotable workMetroidFamicom Detective ClubWarioWareRhythm TengokuTitleManager at Nintendo SPD Production Group No. 1 (2004-2012)Deputy Manager at Nintendo SPD (2012-2015)Senior Officer at N...

 

Tour des Flandres 1949GénéralitésCourse 33e Tour des FlandresCompétition Challenge Desgrange-Colombo 1949Date 10 avril 1949Distance 260 kmPays traversé(s) BelgiqueLieu de départ GandLieu d'arrivée WetterenCoureurs au départ 225Coureurs à l'arrivée 52Vitesse moyenne 35,37 km/hRésultatsVainqueur Fiorenzo MagniDeuxième Valère OllivierTroisième Albéric SchotteTour des Flandres 1948Tour des Flandres 1950modifier - modifier le code - modifier Wikidata Le Tour des Flandres 1949 est la...

МифологияРитуально-мифологическийкомплекс Система ценностей Сакральное Миф Мономиф Теория основного мифа Ритуал Обряд Праздник Жречество Мифологическое сознание Магическое мышление Низшая мифология Модель мира Цикличность Сотворение мира Мировое яйцо Мифическое �...

 

British biochemist Howard MorrisFRSMorris at the 'Endogenous Opiates' Witness Seminar in November 1995BornHoward Redfern MorrisBolton, Lancashire, United KingdomNationalityUnited KingdomOccupationBiochemistEmployerImperial College Howard Redfern Morris FRS is a British biochemist. He worked at Imperial College as a lecturer from 1975 to 1978, as a Reader in Protein Chemistry from 1978 to 1980, and as Professor (later Emeritus) of Biological Chemistry, from 1980.[1][2] He is Pr...

 

1988 novel by Iain M. Banks The Player of Games First editionAuthorIain M. BanksAudio read byPeter KennyCover artistRichard Hopkinson[1]CountryUnited KingdomLanguageEnglishSeriesThe CultureGenreScience fictionPublisherMacmillanPublication date1988Media typePrint (Hardback & Paperback)Pages288ISBN0-333-47110-5OCLC59102973Preceded byConsider Phlebas Followed byUse of Weapons  The Player of Games is a science fiction novel by Scottish writer Ia...

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

 

Programming language This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: IBM BASIC – news · newspapers · books · scholar · JSTOR (September 2012) (Learn how and when to remove this message) Five 8 KB ROM DIP chips and an empty 8 KB ROM expansion socket, on an IBM PC motherboard. Four chips hold Cassett...

 

Federal electoral district in Ontario, Canada For the provincial electoral district, see Renfrew—Nipissing—Pembroke (provincial electoral district). Renfrew—Nipissing—Pembroke Ontario electoral districtRenfrew—Nipissing—Pembroke shown within the Eastern Ontario region (2003 boundaries)Federal electoral districtLegislatureHouse of CommonsMP    Cheryl GallantConservativeDistrict created1976First contested1979Last contested2021District webpageprofile, mapDemographicsPo...

20th-century Romanian politician For the city in Romania formerly known as Dr. Petru Groza, see Ștei. Petru GrozaPresident of the Presidium of the Great National AssemblyIn office12 June 1952 – 7 January 1958Preceded byConstantin Ion ParhonSucceeded byIon Gheorghe MaurerPresident of the Council of MinistersIn office6 March 1945 – 2 June 1952MonarchMichael I (1945–1947)PresidentConstantin Ion Parhon(1947–1952)DeputyGheorghe Tătărescu(1945–1947)Gheorghe Gheorghiu-...

 

Charity Shield FA 1989TurnamenCharity Shield FA Liverpool Arsenal 1 0 Tanggal12 Agustus 1989StadionStadion Wembley, London← 1988 1990 → Charity Shield FA 1989 adalah pertandingan sepak bola antara Liverpool dan Arsenal yang diselenggarakan pada 12 Agustus 1989 di Stadion Wembley, London. Pertandingan ini merupakan pertandingan ke-67 dari penyelenggaraan Charity Shield FA. Pertandingan ini dimenangkan oleh Liverpool dengan skor 1–0.[1] Pertandingan Liverpool v Arsenal 12 ...

 

Gmina in Lower Silesian Voivodeship, PolandGmina Środa Śląska Środa Śląska CommuneGmina FlagCoat of armsCoordinates (Środa Śląska): 51°09′N 16°35′E / 51.150°N 16.583°E / 51.150; 16.583Country PolandVoivodeshipLower SilesianCountyŚroda ŚląskaSeatŚroda ŚląskaSołectwosBrodno, Bukówek, Cesarzowice, Chwalimierz, Ciechów, Gozdawa, Jastrzębce, Jugowiec, Juszczyn, Kobylniki, Komorniki, Kryniczno, Kulin, Lipnica, Michałów, Ogrodnica, Pęczk...

سمبيانالشعارمعلومات عامةالبلد  المملكة المتحدة التأسيس 1998 الاختفاء 2 ديسمبر 2008 النوع شركة برمجيات الشكل القانوني شركة عمومية محدودة المقر الرئيسي لندن المملكة المتحدة موقع الويب symbian.com المنظومة الاقتصاديةالشركة الأم نوكيا الصناعة صناعة البرمجيات المنتجات سيمبيان...

 

Italian theatre of World War I For other Italian campaigns, see Italian Campaign. Italian frontPart of the European theatre of World War IClockwise: Italian soldiers listening to their general's speech; Austro-Hungarian trench on the Isonzo; Austro-Hungarian trench in the Alps; Italian trench on the PiaveDate23 May 1915 – 6 November 1918(3 years, 5 months and 2 weeks)LocationEastern Alps and Venetian PlainResult Italian victory Armistice of Villa Giusti Dissolution of Austria...

 

Gli ultimi fuochiTitolo originaleThe Last Tycoon Altri titoliThe Love of the Last Tycoon. A Western AutoreFrancis Scott Fitzgerald 1ª ed. originale1941 1ª ed. italiana1959 Genereromanzo Lingua originaleinglese ProtagonistiMonroe Stahr Modifica dati su Wikidata · Manuale Gli ultimi fuochi (titolo originale The Last Tycoon) è un romanzo incompiuto dello scrittore americano Francis Scott Fitzgerald, pubblicato postumo con questo titolo dall'amico Edmund Wilson, influente critico le...

John Henry memerankan Ephraim Smooth dalam produksi Amerika Wild Oats Wild Oats adalah sebuah drama karya penulis Irlandia John O'Keeffe. Karya tersebut tampil perdana di Theatre Royal, Covent Garden pada tahun 1791. Pranala luar Wild Oats di Faded Page (Canada) Online text of Wild Oats

 

Cet article est une ébauche concernant l’animation et la bande dessinée asiatiques. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Voir aussi: 1977 au cinéma - 1977 à la télévision Chronologies Données clés 1974 1975 1976  1977  1978 1979 1980Décennies :1940 1950 1960  1970  1980 1990 2000Siècles :XVIIIe XIXe  XXe  XXIe XXIIeMillénaires :-Ier Ier  I...