SlideShare ist ein Scribd-Unternehmen logo
1 von 42
Downloaden Sie, um offline zu lesen
DNS Workshop
DNS Workshop

Evaggelos Balaskas
Serial: 2014011901
disclaimer
• This presentation is just a supported
material based on a dns workshop made
on http://hackerspace.gr.
• May have errors! Plz email me to correct
them.
• At the time you are reading this, the
examples my have different values.
• The domains used in this presentation are
randomly selected.
• Be aware of the serial in the first page!
Before DNS, What?
• /etc/hosts
• C:Windowssystem32driversetchosts
.
• Postel - Mockapetris
Now, What?
• /etc/resolv.conf
●
Nameserver 212.205.212.205
Domain Name System
• domain: hackerspace.gr.
• root NS
• TLD
• ITE NS
• dns1.papaki.gr
•@

.
gr
hackerspace
@
185.4.135.249

• dig +trace hackerspace.gr.
(notice the dot in the end)
Root ns
Root ns
root ns
• http://www.internic.net/domain/named.root
• > dig.exe NS . @a.root-servers.net.
Top Level Domains
• http://www.iana.org/domains/root/db
• Greek TLDs
.gr

country-code

ICS-FORTH GR

.δοκιμή

test

Internet Assigned
Numbers Authority
Top Level Domain: gr. (ITE)
• gr.
• gr.
• gr.
• gr.
• gr.
• gr.
• gr.
• gr.

10748
10748
10748
10748
10748
10748
10748
10748

IN
IN
IN
IN
IN
IN
IN
IN

NS
NS
NS
NS
NS
NS
NS
NS

gr-br.ics.forth.gr.
gr-m.ics.forth.gr.
estia.ics.forth.gr.
grdns.ics.forth.gr.
gr-at.ics.forth.gr.
gr-us.ics.forth.gr.
gr-ix.ics.forth.gr.
grdns-de.denic.de.
Check gr domains
• http://www.gr
• dig +trace NS hackerspace.gr
• dig +trace NS ebalaskas.gr
• dig +trace NS goethe.gr
• Check the differences !
• dig +trace www.hackerspace.gr.
• dig +trace A hackerspace.gr.
Check domains
• > dig A www.ert.gr +short
• > dig NS nerit.gr +short
[de nada!]
ITE does not serve nerit.gr but ...
(see next slide)
servers
• NS
Vs
• Auth
Vs
• Zone files Vs

DNS
Resolvers (caching/recursive)
RAM (memory)

• ns1.otenet.gr
• ns2.otenet.gr

(serve zone files – don’t ask ITE)
(serve zone files – don’t ask ITE)

• dns1.otenet.gr
●
dns2.otenet.gr

(ask root NS – ask ITE – ask NS)
(ask root NS – ask ITE – ask NS)

All OTE customers MUST use
●
212.205.212.205 - dns1 & dns2
●
Public DNS – caching servers
• Google Public DNS (they record your dns queries)
●
8.8.8.8
●
8.8.4.4
• opennicproject
●
85.126.4.170 (T, AT)
●
151.236.10.135 (AT)
( the above IPs are just an example, click here:
http://www.opennicproject.org/ )
• opendns
●
208.67.222.222 (resolver1.opendns.com)
●
208.67.220.220 (resolver2.opendns.com)
RR – resource records
• SOA - Start of Authority Record
• NS - Name Server Record
• MX - Mail Exchanger Record
• A - IPv4 Address Record
• CNAME - Host Alias Record
• SRV - Services Record
• TXT - Text Record
• PTR - Pointer Record
Start Of Authority
> dig soa ebalaskas.gr +short
ns14.ebalaskas.gr. ebalaskas.ebalaskas.gr. 2012052408
172800 3600 1209600 86400
•
•
•
•
•
•

domain: ebalaskas.gr
TTL: 86400
Master NS: ns14.ebalaskas.gr.
Mail: ebalaskas.ebalaskas.gr.
Serial Number: 2012052408
Refresh: 172800 (when the slave will try to refresh
the zone from the master)
• Retry: 1h (if the slave fails to contact the master)
• Expiry: 2w (slave remove the zone from memory)
• Minumum: 24h (slave remove the zone from memory if
Non eXistent DOMAIN)
Serial number
• Integer number
• Must always be greater than the previous
value
• We change the serial on every DNS
change
• Is the way to notify the slave NS that a
change has occurred
• We use the reverse date format + AA of
the change
• eg. 2013/06/20-01 -> 2013062001
NOTIFY
• Master NS sends notifies (UDP packages)
to all slaves NS
(NS RR in the zone file)
• Slaves NS check their SERIAL with master’s
SERIAL
• If master’s serial greater than slave’s serial
then


pull the zone (zone transfer)
TTL Time to Live
How many seconds a DNS
(caching/resolver) should:
• remember a record
• should ask again the master NS for
something
• or keep records from a zone (if expired)
in memory.
• TTL is the reason we (sometimes) need to
flush!
dns flushing
A simple method to remove a specific
entry or an entire zone from the
memory/cache of a resolver name server.
Useful when you dont want to wait till the
TTL expire.
ttl
> dig CNAME www.otenet.gr +nocomments +noqr
+nocmd +nostats +noauthority +noadditional
www.otenet.gr.

86074 IN

CNAME otenet.gr.

> dig CNAME www.otenet.gr +nocomments +noqr
+nocmd +nostats +noauthority +noadditional
www.otenet.gr.

86072 IN

CNAME otenet.gr.
ORIGIN
• With origin we refer to the domain, or the
zone file.
• @ is the representative character
• Origin can ONLY be A record
eg. yellowpagesbusiness.gr
@
IN
A
195.170.6.20
www
IN
CNAME xo.gr.
MX
> dig MX gmail.com +short
5
10
20
30
40

gmail-smtp-in.l.google.com.
alt1.gmail-smtp-in.l.google.com.
alt2.gmail-smtp-in.l.google.com.
alt3.gmail-smtp-in.l.google.com.
alt4.gmail-smtp-in.l.google.com.

mx defines the mail servers that recieving
emails for a domain/email address.
A - CNAME
• hostname IN A 1.2.3.4
eg.
• ebalaskas.gr IN A 158.255.214.14
• hostname IN CNAME fqdn
eg.
• www IN CNAME ebalaskas.gr.
• A fqdn must always finish with a dot (.) or
else is a reference to another record
inside the dns zone
Round-robin DNS
An example of DNS round robin (a poor
man’s balancing mechanism):
eg. example.com
www IN A 1.2.3.4
www IN A 2.3.4.5

(sometimes here!)
(sometimes there!)
CDN: Web hosting
• eg. webhosting on akamai or cloudflare
• They serve a different www (IP) according
to the most network route wise (cost
efficient) – looks like geolocation!!!
• They don’t serve A records! only CNAMEs
to www
• CDN stands for content delivery network
Check a domain
eg cdn webhosting: www.plaisio.gr
• GREECE
> dig www.plaisio.gr +short
plaisio.gr.edgesuite.net.
a944.g.akamai.net.
212.205.126.41
212.205.126.34
• GERMANY
>dig www.plaisio.gr +short
plaisio.gr.edgesuite.net.
a944.g.akamai.net.
87.245.215.73
87.245.215.23
TXT
• txt RR are simply TEXT fields.
• max length: 4000characters
Syntax:
hostname TTL IN TXT “TEXT TEXT TEXT”
So the customers must send us the text
inside double quotes (plz don’t fax)
TXT
• is the only resource record that can
expand to more than one line
syntax:
joe IN TXT ("Located in a black hole"
" somewhere over the rainbow")
Be carefuly when using custom parsers
Some examples:
• DZC

IN

•@

3600

•@

IN

TXT
IN
TXT

"eoMi3Yk“

TXT

"MS=ms70870252"

"v=spf1 a mx ip4:195.170.6.0/24 -all"

• turbo-smtp._domainkey IN
TXT
"k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBg
QDT3MWLni6so1q9eQggRYBCLHFjohZkCnYHH8gZNDBm6zR
rodRVpWpJQW7x3cWWiuBhS1X0IfBB80l5tqFa+yc+mVgnk8t
kUzOHFbPQPp4fi7egTpMtsQW/ZMrxw73SItNvPr72qvJTYZNP
xarMx+ULjEWybcfEdXHPY8jslGcpCwIDAQAB"
SPF
• Sender Policy Framework
• Mostly Microsoft
• define the mail servers that can send an
email for the domain they serve
• The DNS check comes from the receiver
mail server
(see last page for reference)
DKIM
• In the TXT RR is the public key of the
receiver mail server.
• If defined, the sender mail server can
encrypt the communication between the
two mail servers.
• We cant convert a customer request from
FAX. Plz ask text file from the customer.
Pretty PLZ!
SRV
• Service Resource Record
• Define a service for a domain and the server that serve this
service
• Syntax:
• _service._protocol IN SRV PRI WEIGHT PORT record
•
•
•
•
•
•

Mostly for xmpp communications,
SIP (voip communications)
web service
mail service
ntp service
etc
(see last page for reference)
some examples:
• _http._tcp

IN

SRV 10 5 80 www.tickethour.gr.

• _autodiscover._tcp IN
mail.yellowpages.gr.

SRV

• _ntp._udp

10 0 123

IN

SRV

• _xmpp-server._tcp
IN
server.l.google.com.
• _sip._tcp IN

SRV

SRV

10

0

443
creta.logifer.gr.

5 0 5269 xmpp-

10 0 5061 sip.logifer.gr.
PTR
• dig +trace -x 185.4.135.249
• A.IN-ADDR-SERVERS.ARPA
• B.IN-ADDR-SERVERS.ARPA
• C.IN-ADDR-SERVERS.ARPA
• D.IN-ADDR-SERVERS.ARPA
• E.IN-ADDR-SERVERS.ARPA
• F.IN-ADDR-SERVERS.ARPA

(operated
(operated
(operated
(operated
(operated
(operated

by
by
by
by
by
by

ARIN)
ICANN)
AfriNIC)
LACNIC)
APNIC)
RIPE NCC)
reverse zone
> dig 135.4.185.in-addr.arpa. +trace
135.4.185.in-addr.arpa.172800 IN NSdns2.papaki.gr.
135.4.185.in-addr.arpa.172800 IN NSdns1.papaki.gr.
https://apps.db.ripe.net/search/query.html?searchtext=
135.4.185.in-addr.arpa
subdomains
• www.cs.teiath.gr.
• HOST
• www.cs
• www

 DOMAIN
 teiath.gr (not subdomain)
 cs.teiath.gr (subdomain, lets check it)

• > dig A www.cs.teiath.gr +short
• 195.130.109.88
• > dig NS cs.teiath.gr +short
• athena.teiath.gr.
• hermes.teiath.gr.
DNS Ports
UDP port 53 (stateless)
TCP port 53 (statefull)
default udp,
transform to tcp when >512bytes
Zone transfer
• Transfer zone from authoritave name
server to slave name servers.
• That makes dns a distribute service
• Authoritave name servers MUST open
their firewall for UDP and TCP protocols
on UDP/TCP port 53
Useful links
• http://www.zytrax.com/books/dns/
• http://www.internic.net/domain/named.root
• http://www.iana.org/domains/root/db
• http://www.kloth.net/services/dig.php
• http://www.iana.org/
• http://www.ripe.net/
• http://www.openspf.org/
●
http://www.gr-ix.gr/services/statistics/

Weitere ähnliche Inhalte

Was ist angesagt?

Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0Zabbix
 
ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...
ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...
ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...ZFConf Conference
 
Academy PRO: Querying Elasticsearch
Academy PRO: Querying ElasticsearchAcademy PRO: Querying Elasticsearch
Academy PRO: Querying ElasticsearchBinary Studio
 
DBD::Gofer 200809
DBD::Gofer 200809DBD::Gofer 200809
DBD::Gofer 200809Tim Bunce
 
Sharding Methods for MongoDB
Sharding Methods for MongoDBSharding Methods for MongoDB
Sharding Methods for MongoDBMongoDB
 
Importance of SSHFP for Network Devices
Importance of SSHFP for Network DevicesImportance of SSHFP for Network Devices
Importance of SSHFP for Network DevicesAPNIC
 
Importance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devicesImportance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devicesMuhammad Moinur Rahman
 
Centralized + Unified Logging
Centralized + Unified LoggingCentralized + Unified Logging
Centralized + Unified LoggingGabor Kozma
 
Data Wars: The Bloody Enterprise strikes back
Data Wars: The Bloody Enterprise strikes backData Wars: The Bloody Enterprise strikes back
Data Wars: The Bloody Enterprise strikes backVictor_Cr
 
21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system
21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system
21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage systemAthens Big Data
 
Perl Memory Use 201209
Perl Memory Use 201209Perl Memory Use 201209
Perl Memory Use 201209Tim Bunce
 
OSDC 2012 | Scaling with MongoDB by Ross Lawley
OSDC 2012 | Scaling with MongoDB by Ross LawleyOSDC 2012 | Scaling with MongoDB by Ross Lawley
OSDC 2012 | Scaling with MongoDB by Ross LawleyNETWAYS
 
Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501Jinho Kim
 
Developing and Deploying Apps with the Postgres FDW
Developing and Deploying Apps with the Postgres FDWDeveloping and Deploying Apps with the Postgres FDW
Developing and Deploying Apps with the Postgres FDWJonathan Katz
 
Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...
Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...
Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...DataStax
 
Devel::NYTProf v5 at YAPC::NA 201406
Devel::NYTProf v5 at YAPC::NA 201406Devel::NYTProf v5 at YAPC::NA 201406
Devel::NYTProf v5 at YAPC::NA 201406Tim Bunce
 
Hadoop spark performance comparison
Hadoop spark performance comparisonHadoop spark performance comparison
Hadoop spark performance comparisonarunkumar sadhasivam
 
Apache Hadoop Shell Rewrite
Apache Hadoop Shell RewriteApache Hadoop Shell Rewrite
Apache Hadoop Shell RewriteAllen Wittenauer
 
Cassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break GlassCassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break GlassDataStax
 
Perl Memory Use - LPW2013
Perl Memory Use - LPW2013Perl Memory Use - LPW2013
Perl Memory Use - LPW2013Tim Bunce
 

Was ist angesagt? (20)

Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
 
ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...
ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...
ZFConf 2011: Что такое Sphinx, зачем он вообще нужен и как его использовать с...
 
Academy PRO: Querying Elasticsearch
Academy PRO: Querying ElasticsearchAcademy PRO: Querying Elasticsearch
Academy PRO: Querying Elasticsearch
 
DBD::Gofer 200809
DBD::Gofer 200809DBD::Gofer 200809
DBD::Gofer 200809
 
Sharding Methods for MongoDB
Sharding Methods for MongoDBSharding Methods for MongoDB
Sharding Methods for MongoDB
 
Importance of SSHFP for Network Devices
Importance of SSHFP for Network DevicesImportance of SSHFP for Network Devices
Importance of SSHFP for Network Devices
 
Importance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devicesImportance of sshfp and configuring sshfp for network devices
Importance of sshfp and configuring sshfp for network devices
 
Centralized + Unified Logging
Centralized + Unified LoggingCentralized + Unified Logging
Centralized + Unified Logging
 
Data Wars: The Bloody Enterprise strikes back
Data Wars: The Bloody Enterprise strikes backData Wars: The Bloody Enterprise strikes back
Data Wars: The Bloody Enterprise strikes back
 
21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system
21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system
21st Athens Big Data Meetup - 2nd Talk - Dive into ClickHouse storage system
 
Perl Memory Use 201209
Perl Memory Use 201209Perl Memory Use 201209
Perl Memory Use 201209
 
OSDC 2012 | Scaling with MongoDB by Ross Lawley
OSDC 2012 | Scaling with MongoDB by Ross LawleyOSDC 2012 | Scaling with MongoDB by Ross Lawley
OSDC 2012 | Scaling with MongoDB by Ross Lawley
 
Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501
 
Developing and Deploying Apps with the Postgres FDW
Developing and Deploying Apps with the Postgres FDWDeveloping and Deploying Apps with the Postgres FDW
Developing and Deploying Apps with the Postgres FDW
 
Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...
Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...
Bucket Your Partitions Wisely (Markus Höfer, codecentric AG) | Cassandra Summ...
 
Devel::NYTProf v5 at YAPC::NA 201406
Devel::NYTProf v5 at YAPC::NA 201406Devel::NYTProf v5 at YAPC::NA 201406
Devel::NYTProf v5 at YAPC::NA 201406
 
Hadoop spark performance comparison
Hadoop spark performance comparisonHadoop spark performance comparison
Hadoop spark performance comparison
 
Apache Hadoop Shell Rewrite
Apache Hadoop Shell RewriteApache Hadoop Shell Rewrite
Apache Hadoop Shell Rewrite
 
Cassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break GlassCassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break Glass
 
Perl Memory Use - LPW2013
Perl Memory Use - LPW2013Perl Memory Use - LPW2013
Perl Memory Use - LPW2013
 

Andere mochten auch

Essential facts about the computer and video game industry 2012
Essential facts about the computer and video game industry 2012Essential facts about the computer and video game industry 2012
Essential facts about the computer and video game industry 2012Dung Tri
 
Green Light Credentials
Green Light CredentialsGreen Light Credentials
Green Light Credentialsagchiggins
 
Learn details of pike v hough case with lewis barbe
Learn details of pike v hough case with lewis barbeLearn details of pike v hough case with lewis barbe
Learn details of pike v hough case with lewis barbeLewis Barbe
 
Fluid Analytics - bespoke consulting, design, reporting and analytics.
Fluid Analytics - bespoke consulting, design, reporting and analytics.Fluid Analytics - bespoke consulting, design, reporting and analytics.
Fluid Analytics - bespoke consulting, design, reporting and analytics.Chloe Wood
 
Amsterdam jan2014
Amsterdam jan2014Amsterdam jan2014
Amsterdam jan2014digitaliva
 
Wissenspark Moorburg
Wissenspark MoorburgWissenspark Moorburg
Wissenspark Moorburgmoaeburch
 
CNS Baltimore Report Apr 01, 2011 (612419)
CNS Baltimore Report Apr 01, 2011 (612419)CNS Baltimore Report Apr 01, 2011 (612419)
CNS Baltimore Report Apr 01, 2011 (612419)Therese Umerlik
 
Agility meets regulatory compliance
Agility meets regulatory complianceAgility meets regulatory compliance
Agility meets regulatory complianceDave Sharrock
 
Edri And Regev 2010 Cryo-staining techniques in cryo-TEM studies of dispe...
Edri And Regev   2010   Cryo-staining techniques in cryo-TEM studies of dispe...Edri And Regev   2010   Cryo-staining techniques in cryo-TEM studies of dispe...
Edri And Regev 2010 Cryo-staining techniques in cryo-TEM studies of dispe...edrier
 
Root 2: Landscaping for Water Resouces Management
Root 2: Landscaping for Water Resouces ManagementRoot 2: Landscaping for Water Resouces Management
Root 2: Landscaping for Water Resouces ManagementSotirakou964
 
The Financial Life Cycle of the Orthodontist - Utah Association of Orthodontists
The Financial Life Cycle of the Orthodontist - Utah Association of OrthodontistsThe Financial Life Cycle of the Orthodontist - Utah Association of Orthodontists
The Financial Life Cycle of the Orthodontist - Utah Association of OrthodontistsPixelSpoke
 
BlackGold company profile
BlackGold company profileBlackGold company profile
BlackGold company profileLillian Mwaanga
 
Aapi geeta sikand 6-29-12-final- heart-health-talk-consumers
Aapi geeta sikand 6-29-12-final- heart-health-talk-consumersAapi geeta sikand 6-29-12-final- heart-health-talk-consumers
Aapi geeta sikand 6-29-12-final- heart-health-talk-consumersAAPIconvention
 
Corporate Letterhead from the Records of the US Consular Service
Corporate Letterhead from the Records of the US Consular ServiceCorporate Letterhead from the Records of the US Consular Service
Corporate Letterhead from the Records of the US Consular Servicenmpxiv
 

Andere mochten auch (17)

Essential facts about the computer and video game industry 2012
Essential facts about the computer and video game industry 2012Essential facts about the computer and video game industry 2012
Essential facts about the computer and video game industry 2012
 
Green Light Credentials
Green Light CredentialsGreen Light Credentials
Green Light Credentials
 
schau.gmuend Nr.3
schau.gmuend Nr.3schau.gmuend Nr.3
schau.gmuend Nr.3
 
Learn details of pike v hough case with lewis barbe
Learn details of pike v hough case with lewis barbeLearn details of pike v hough case with lewis barbe
Learn details of pike v hough case with lewis barbe
 
Fluid Analytics - bespoke consulting, design, reporting and analytics.
Fluid Analytics - bespoke consulting, design, reporting and analytics.Fluid Analytics - bespoke consulting, design, reporting and analytics.
Fluid Analytics - bespoke consulting, design, reporting and analytics.
 
Amsterdam jan2014
Amsterdam jan2014Amsterdam jan2014
Amsterdam jan2014
 
Wissenspark Moorburg
Wissenspark MoorburgWissenspark Moorburg
Wissenspark Moorburg
 
CNS Baltimore Report Apr 01, 2011 (612419)
CNS Baltimore Report Apr 01, 2011 (612419)CNS Baltimore Report Apr 01, 2011 (612419)
CNS Baltimore Report Apr 01, 2011 (612419)
 
Agility meets regulatory compliance
Agility meets regulatory complianceAgility meets regulatory compliance
Agility meets regulatory compliance
 
Edri And Regev 2010 Cryo-staining techniques in cryo-TEM studies of dispe...
Edri And Regev   2010   Cryo-staining techniques in cryo-TEM studies of dispe...Edri And Regev   2010   Cryo-staining techniques in cryo-TEM studies of dispe...
Edri And Regev 2010 Cryo-staining techniques in cryo-TEM studies of dispe...
 
Hollywood, US Foreign Policy & Patriotism
Hollywood, US Foreign Policy & PatriotismHollywood, US Foreign Policy & Patriotism
Hollywood, US Foreign Policy & Patriotism
 
Root 2: Landscaping for Water Resouces Management
Root 2: Landscaping for Water Resouces ManagementRoot 2: Landscaping for Water Resouces Management
Root 2: Landscaping for Water Resouces Management
 
November
NovemberNovember
November
 
The Financial Life Cycle of the Orthodontist - Utah Association of Orthodontists
The Financial Life Cycle of the Orthodontist - Utah Association of OrthodontistsThe Financial Life Cycle of the Orthodontist - Utah Association of Orthodontists
The Financial Life Cycle of the Orthodontist - Utah Association of Orthodontists
 
BlackGold company profile
BlackGold company profileBlackGold company profile
BlackGold company profile
 
Aapi geeta sikand 6-29-12-final- heart-health-talk-consumers
Aapi geeta sikand 6-29-12-final- heart-health-talk-consumersAapi geeta sikand 6-29-12-final- heart-health-talk-consumers
Aapi geeta sikand 6-29-12-final- heart-health-talk-consumers
 
Corporate Letterhead from the Records of the US Consular Service
Corporate Letterhead from the Records of the US Consular ServiceCorporate Letterhead from the Records of the US Consular Service
Corporate Letterhead from the Records of the US Consular Service
 

Ähnlich wie dns.workshop.hsgr

Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...
Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...
Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...RootedCON
 
Domain Name System (DNS) Fundamentals
Domain Name System (DNS) FundamentalsDomain Name System (DNS) Fundamentals
Domain Name System (DNS) FundamentalsWebSniffer
 
A curious case of broken dns responses - RIPE75
A curious case of broken dns responses - RIPE75A curious case of broken dns responses - RIPE75
A curious case of broken dns responses - RIPE75Babak Farrokhi
 
Managing terabytes: When Postgres gets big
Managing terabytes: When Postgres gets bigManaging terabytes: When Postgres gets big
Managing terabytes: When Postgres gets bigSelena Deckelmann
 
CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)
CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)
CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)PROIDEA
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamMyNOG
 
Managing terabytes: When PostgreSQL gets big
Managing terabytes: When PostgreSQL gets bigManaging terabytes: When PostgreSQL gets big
Managing terabytes: When PostgreSQL gets bigSelena Deckelmann
 
A @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNSA @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNSRob Fuller
 
Linux networking commands short
Linux networking commands shortLinux networking commands short
Linux networking commands shortSayed Ahmed
 
A curious case of broken DNS responses (Coloclue Presents - Nov 2019)
A curious case of broken DNS responses (Coloclue Presents - Nov 2019)A curious case of broken DNS responses (Coloclue Presents - Nov 2019)
A curious case of broken DNS responses (Coloclue Presents - Nov 2019)Babak Farrokhi
 
Signing DNSSEC answers on the fly at the edge: challenges and solutions
Signing DNSSEC answers on the fly at the edge: challenges and solutionsSigning DNSSEC answers on the fly at the edge: challenges and solutions
Signing DNSSEC answers on the fly at the edge: challenges and solutionsAPNIC
 
linux networking commands short
linux networking commands shortlinux networking commands short
linux networking commands shortSayed Ahmed
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerforce
 
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]APNIC
 
Optimizing Presto Connector on Cloud Storage
Optimizing Presto Connector on Cloud StorageOptimizing Presto Connector on Cloud Storage
Optimizing Presto Connector on Cloud StorageKai Sasaki
 

Ähnlich wie dns.workshop.hsgr (20)

Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...
Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...
Francisco Jesús Gómez + Carlos Juan Diaz - Cloud Malware Distribution: DNS wi...
 
Domain Name System (DNS) Fundamentals
Domain Name System (DNS) FundamentalsDomain Name System (DNS) Fundamentals
Domain Name System (DNS) Fundamentals
 
A curious case of broken dns responses - RIPE75
A curious case of broken dns responses - RIPE75A curious case of broken dns responses - RIPE75
A curious case of broken dns responses - RIPE75
 
Managing terabytes: When Postgres gets big
Managing terabytes: When Postgres gets bigManaging terabytes: When Postgres gets big
Managing terabytes: When Postgres gets big
 
CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)
CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)
CONFidence 2018: Detecting Phishing from pDNS (Irena Damsky)
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul Islam
 
Managing terabytes: When PostgreSQL gets big
Managing terabytes: When PostgreSQL gets bigManaging terabytes: When PostgreSQL gets big
Managing terabytes: When PostgreSQL gets big
 
4 technical-dns-workshop-day2
4 technical-dns-workshop-day24 technical-dns-workshop-day2
4 technical-dns-workshop-day2
 
ION Bangladesh - DANE, DNSSEC, and TLS Testing in the Go6lab
ION Bangladesh - DANE, DNSSEC, and TLS Testing in the Go6labION Bangladesh - DANE, DNSSEC, and TLS Testing in the Go6lab
ION Bangladesh - DANE, DNSSEC, and TLS Testing in the Go6lab
 
ION Bucharest - DANE-DNSSEC-TLS
ION Bucharest - DANE-DNSSEC-TLSION Bucharest - DANE-DNSSEC-TLS
ION Bucharest - DANE-DNSSEC-TLS
 
A @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNSA @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNS
 
Linux networking commands short
Linux networking commands shortLinux networking commands short
Linux networking commands short
 
A curious case of broken DNS responses (Coloclue Presents - Nov 2019)
A curious case of broken DNS responses (Coloclue Presents - Nov 2019)A curious case of broken DNS responses (Coloclue Presents - Nov 2019)
A curious case of broken DNS responses (Coloclue Presents - Nov 2019)
 
Signing DNSSEC answers on the fly at the edge: challenges and solutions
Signing DNSSEC answers on the fly at the edge: challenges and solutionsSigning DNSSEC answers on the fly at the edge: challenges and solutions
Signing DNSSEC answers on the fly at the edge: challenges and solutions
 
linux networking commands short
linux networking commands shortlinux networking commands short
linux networking commands short
 
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAILDNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in Perforce
 
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
 
7 technical-dns-workshop-day3
7 technical-dns-workshop-day37 technical-dns-workshop-day3
7 technical-dns-workshop-day3
 
Optimizing Presto Connector on Cloud Storage
Optimizing Presto Connector on Cloud StorageOptimizing Presto Connector on Cloud Storage
Optimizing Presto Connector on Cloud Storage
 

Kürzlich hochgeladen

Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...itnewsafrica
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...amber724300
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...BookNet Canada
 

Kürzlich hochgeladen (20)

Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 

dns.workshop.hsgr

  • 1. DNS Workshop DNS Workshop Evaggelos Balaskas Serial: 2014011901
  • 2. disclaimer • This presentation is just a supported material based on a dns workshop made on http://hackerspace.gr. • May have errors! Plz email me to correct them. • At the time you are reading this, the examples my have different values. • The domains used in this presentation are randomly selected. • Be aware of the serial in the first page!
  • 3. Before DNS, What? • /etc/hosts • C:Windowssystem32driversetchosts . • Postel - Mockapetris
  • 5.
  • 6. Domain Name System • domain: hackerspace.gr. • root NS • TLD • ITE NS • dns1.papaki.gr •@ . gr hackerspace @ 185.4.135.249 • dig +trace hackerspace.gr. (notice the dot in the end)
  • 9. root ns • http://www.internic.net/domain/named.root • > dig.exe NS . @a.root-servers.net.
  • 10. Top Level Domains • http://www.iana.org/domains/root/db • Greek TLDs .gr country-code ICS-FORTH GR .δοκιμή test Internet Assigned Numbers Authority
  • 11. Top Level Domain: gr. (ITE) • gr. • gr. • gr. • gr. • gr. • gr. • gr. • gr. 10748 10748 10748 10748 10748 10748 10748 10748 IN IN IN IN IN IN IN IN NS NS NS NS NS NS NS NS gr-br.ics.forth.gr. gr-m.ics.forth.gr. estia.ics.forth.gr. grdns.ics.forth.gr. gr-at.ics.forth.gr. gr-us.ics.forth.gr. gr-ix.ics.forth.gr. grdns-de.denic.de.
  • 12. Check gr domains • http://www.gr • dig +trace NS hackerspace.gr • dig +trace NS ebalaskas.gr • dig +trace NS goethe.gr • Check the differences ! • dig +trace www.hackerspace.gr. • dig +trace A hackerspace.gr.
  • 13. Check domains • > dig A www.ert.gr +short • > dig NS nerit.gr +short [de nada!] ITE does not serve nerit.gr but ... (see next slide)
  • 14.
  • 15. servers • NS Vs • Auth Vs • Zone files Vs DNS Resolvers (caching/recursive) RAM (memory) • ns1.otenet.gr • ns2.otenet.gr (serve zone files – don’t ask ITE) (serve zone files – don’t ask ITE) • dns1.otenet.gr ● dns2.otenet.gr (ask root NS – ask ITE – ask NS) (ask root NS – ask ITE – ask NS) All OTE customers MUST use ● 212.205.212.205 - dns1 & dns2 ●
  • 16. Public DNS – caching servers • Google Public DNS (they record your dns queries) ● 8.8.8.8 ● 8.8.4.4 • opennicproject ● 85.126.4.170 (T, AT) ● 151.236.10.135 (AT) ( the above IPs are just an example, click here: http://www.opennicproject.org/ ) • opendns ● 208.67.222.222 (resolver1.opendns.com) ● 208.67.220.220 (resolver2.opendns.com)
  • 17. RR – resource records • SOA - Start of Authority Record • NS - Name Server Record • MX - Mail Exchanger Record • A - IPv4 Address Record • CNAME - Host Alias Record • SRV - Services Record • TXT - Text Record • PTR - Pointer Record
  • 18. Start Of Authority > dig soa ebalaskas.gr +short ns14.ebalaskas.gr. ebalaskas.ebalaskas.gr. 2012052408 172800 3600 1209600 86400 • • • • • • domain: ebalaskas.gr TTL: 86400 Master NS: ns14.ebalaskas.gr. Mail: ebalaskas.ebalaskas.gr. Serial Number: 2012052408 Refresh: 172800 (when the slave will try to refresh the zone from the master) • Retry: 1h (if the slave fails to contact the master) • Expiry: 2w (slave remove the zone from memory) • Minumum: 24h (slave remove the zone from memory if Non eXistent DOMAIN)
  • 19. Serial number • Integer number • Must always be greater than the previous value • We change the serial on every DNS change • Is the way to notify the slave NS that a change has occurred • We use the reverse date format + AA of the change • eg. 2013/06/20-01 -> 2013062001
  • 20. NOTIFY • Master NS sends notifies (UDP packages) to all slaves NS (NS RR in the zone file) • Slaves NS check their SERIAL with master’s SERIAL • If master’s serial greater than slave’s serial then  pull the zone (zone transfer)
  • 21. TTL Time to Live How many seconds a DNS (caching/resolver) should: • remember a record • should ask again the master NS for something • or keep records from a zone (if expired) in memory. • TTL is the reason we (sometimes) need to flush!
  • 22. dns flushing A simple method to remove a specific entry or an entire zone from the memory/cache of a resolver name server. Useful when you dont want to wait till the TTL expire.
  • 23. ttl > dig CNAME www.otenet.gr +nocomments +noqr +nocmd +nostats +noauthority +noadditional www.otenet.gr. 86074 IN CNAME otenet.gr. > dig CNAME www.otenet.gr +nocomments +noqr +nocmd +nostats +noauthority +noadditional www.otenet.gr. 86072 IN CNAME otenet.gr.
  • 24. ORIGIN • With origin we refer to the domain, or the zone file. • @ is the representative character • Origin can ONLY be A record eg. yellowpagesbusiness.gr @ IN A 195.170.6.20 www IN CNAME xo.gr.
  • 25. MX > dig MX gmail.com +short 5 10 20 30 40 gmail-smtp-in.l.google.com. alt1.gmail-smtp-in.l.google.com. alt2.gmail-smtp-in.l.google.com. alt3.gmail-smtp-in.l.google.com. alt4.gmail-smtp-in.l.google.com. mx defines the mail servers that recieving emails for a domain/email address.
  • 26. A - CNAME • hostname IN A 1.2.3.4 eg. • ebalaskas.gr IN A 158.255.214.14 • hostname IN CNAME fqdn eg. • www IN CNAME ebalaskas.gr. • A fqdn must always finish with a dot (.) or else is a reference to another record inside the dns zone
  • 27. Round-robin DNS An example of DNS round robin (a poor man’s balancing mechanism): eg. example.com www IN A 1.2.3.4 www IN A 2.3.4.5 (sometimes here!) (sometimes there!)
  • 28. CDN: Web hosting • eg. webhosting on akamai or cloudflare • They serve a different www (IP) according to the most network route wise (cost efficient) – looks like geolocation!!! • They don’t serve A records! only CNAMEs to www • CDN stands for content delivery network
  • 29. Check a domain eg cdn webhosting: www.plaisio.gr • GREECE > dig www.plaisio.gr +short plaisio.gr.edgesuite.net. a944.g.akamai.net. 212.205.126.41 212.205.126.34 • GERMANY >dig www.plaisio.gr +short plaisio.gr.edgesuite.net. a944.g.akamai.net. 87.245.215.73 87.245.215.23
  • 30. TXT • txt RR are simply TEXT fields. • max length: 4000characters Syntax: hostname TTL IN TXT “TEXT TEXT TEXT” So the customers must send us the text inside double quotes (plz don’t fax)
  • 31. TXT • is the only resource record that can expand to more than one line syntax: joe IN TXT ("Located in a black hole" " somewhere over the rainbow") Be carefuly when using custom parsers
  • 32. Some examples: • DZC IN •@ 3600 •@ IN TXT IN TXT "eoMi3Yk“ TXT "MS=ms70870252" "v=spf1 a mx ip4:195.170.6.0/24 -all" • turbo-smtp._domainkey IN TXT "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBg QDT3MWLni6so1q9eQggRYBCLHFjohZkCnYHH8gZNDBm6zR rodRVpWpJQW7x3cWWiuBhS1X0IfBB80l5tqFa+yc+mVgnk8t kUzOHFbPQPp4fi7egTpMtsQW/ZMrxw73SItNvPr72qvJTYZNP xarMx+ULjEWybcfEdXHPY8jslGcpCwIDAQAB"
  • 33. SPF • Sender Policy Framework • Mostly Microsoft • define the mail servers that can send an email for the domain they serve • The DNS check comes from the receiver mail server (see last page for reference)
  • 34. DKIM • In the TXT RR is the public key of the receiver mail server. • If defined, the sender mail server can encrypt the communication between the two mail servers. • We cant convert a customer request from FAX. Plz ask text file from the customer. Pretty PLZ!
  • 35. SRV • Service Resource Record • Define a service for a domain and the server that serve this service • Syntax: • _service._protocol IN SRV PRI WEIGHT PORT record • • • • • • Mostly for xmpp communications, SIP (voip communications) web service mail service ntp service etc (see last page for reference)
  • 36. some examples: • _http._tcp IN SRV 10 5 80 www.tickethour.gr. • _autodiscover._tcp IN mail.yellowpages.gr. SRV • _ntp._udp 10 0 123 IN SRV • _xmpp-server._tcp IN server.l.google.com. • _sip._tcp IN SRV SRV 10 0 443 creta.logifer.gr. 5 0 5269 xmpp- 10 0 5061 sip.logifer.gr.
  • 37. PTR • dig +trace -x 185.4.135.249 • A.IN-ADDR-SERVERS.ARPA • B.IN-ADDR-SERVERS.ARPA • C.IN-ADDR-SERVERS.ARPA • D.IN-ADDR-SERVERS.ARPA • E.IN-ADDR-SERVERS.ARPA • F.IN-ADDR-SERVERS.ARPA (operated (operated (operated (operated (operated (operated by by by by by by ARIN) ICANN) AfriNIC) LACNIC) APNIC) RIPE NCC)
  • 38. reverse zone > dig 135.4.185.in-addr.arpa. +trace 135.4.185.in-addr.arpa.172800 IN NSdns2.papaki.gr. 135.4.185.in-addr.arpa.172800 IN NSdns1.papaki.gr. https://apps.db.ripe.net/search/query.html?searchtext= 135.4.185.in-addr.arpa
  • 39. subdomains • www.cs.teiath.gr. • HOST • www.cs • www  DOMAIN  teiath.gr (not subdomain)  cs.teiath.gr (subdomain, lets check it) • > dig A www.cs.teiath.gr +short • 195.130.109.88 • > dig NS cs.teiath.gr +short • athena.teiath.gr. • hermes.teiath.gr.
  • 40. DNS Ports UDP port 53 (stateless) TCP port 53 (statefull) default udp, transform to tcp when >512bytes
  • 41. Zone transfer • Transfer zone from authoritave name server to slave name servers. • That makes dns a distribute service • Authoritave name servers MUST open their firewall for UDP and TCP protocols on UDP/TCP port 53
  • 42. Useful links • http://www.zytrax.com/books/dns/ • http://www.internic.net/domain/named.root • http://www.iana.org/domains/root/db • http://www.kloth.net/services/dig.php • http://www.iana.org/ • http://www.ripe.net/ • http://www.openspf.org/ ● http://www.gr-ix.gr/services/statistics/