1 Pertemuan 7 Name and Address Conversion Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0.

Slides:



Advertisements
Presentasi serupa
JARINGAN CLIENT - SERVER
Advertisements

DNS Server WAHYU HERLAMBANG.
ASPEK TEKNIS DARI NAMA DOMAIN DI INTERNET
Client-Server Computing
Pemrograman Jaringan Web & DNS Aurelio Rahmadian.
Domain Name System (DNS)
Materi Matrikulasi Aplikasi Komputer
Domain Name System Politeknik Elektronikan Negeri Surabaya Institut Tekonolgi Sepuluh Nopember Surabaya Oleh Tim Network Administrator PENS ITS.
+ Aplikasi Layanan - DNS Teknik Informatika Universitas Bunda Mulia Jakarta Indra Priyandono.
Sendmail Mail Server By Team Dosen PENS-ITS.
Pemrograman Internet Mobile 7 PHP: Hypertext Preprocessors.
Domain Name System (DNS)
DNS (Domain Names Service) Margo Nur Cahyo Sst ketepeng.wordpress.com.
Socket Programming Isbat Uzzin.
Matakuliah : H0483 / Network Programming Tahun : 2008 Versi : 2.0
Pertemuan 2 Socket Introduction
Pertemuan 6 Server dengan Multi Thread pada Linux
Linux Networking Tools. ICMP Internet Control Message Protocol ICMP Message  Echo & Echo Reply  Destination Unreachable  Redirect  Traceroute.
PRAKTIKUM 3 PEMROGRAMAN BASIS DATA. Menghapus baris  Deleting rows- DELETE FROM Use the DELELE FROM command to delete row(s) from a table, with the following.
Domain Name System - DNS Pertemuan 12
Melihat List Program yang akan di update sudo dpkg -l Install program yang akan di update sudo apt-get install nama_package TCP IP $sudo gedit /etc/network/interface.
Pertemuan 3 ELEMENTARY TCP SOCKETS
DASAR SOCKET PROGRAMMING
Domain Name System (DNS)
1 Pertemuan Fungsi Matakuliah: T0016 / Algoritma dan Pemrograman Tahun: 2007 Versi: 6.
Matakuliah : T0534/Struktur Data Tahun : 2005 Versi : September 2005
Simple Object Access Protocol
1 Pertemuan 10 Pemrograman Jaringan pada Windows dengan VC ) Matakuliah: H0483 – Network Programming Tahun: 2008 Versi: 2.0.
DNS SERVER Oleh : Oman Somantri, S.Kom
Bab 12 Application Layer Abdillah, MIT.
Aasliyaniunm10.wordpress.com. DNS Server adalah komponen yang berfungsi menerjemahkan nama domain dengan IP address atau sebatiknya. Dengan menggunakan.
Pertemuan 5 I/O Multiplexing
1 Pertemuan 15 Game Playing Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1.
1 Pertemuan #3 Probability Distribution Matakuliah: H0332/Simulasi dan Permodelan Tahun: 2005 Versi: 1/1.
1 Pertemuan 9 Unix Domain Protocol Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0.
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
CARA KERJA WEB Rofilde Hasudungan.
Domain Name System (for Linux)
KELOMPOK 6 MARTINI RISNA INDRIANI
Oleh Girindro Pringgo Digdo
DNS Server Bind9.
Pertemuan 2 Khairul Anwar Hafizd
Administrasi Jaringan DNS Server
Client-Server Computing
Application Layer Abdillah, MIT.
Matakuliah : T0534/Struktur Data Tahun : 2005 Versi : September 2005
Pengantar Jaringan Komputer
Matakuliah : Jaringan Komputer 2 Versi Materi
Pengujian Hipotesis (I) Pertemuan 11
Matakuliah : I0014 / Biostatistika Tahun : 2005 Versi : V1 / R1
Domain Name System (DNS) Nama Dosen: Nahot Frastian, M
Client-Server Computing
Pertemuan 2 Socket Introduction
Bab 12 Application Layer Abdillah, MIT.
Website WEB World Wide Web www W3 A set of interconnected webpages, usually including a homepage, generally located on the same server, and prepared.
Pendugaan Parameter (II) Pertemuan 10
“DNS (Domain Name System)”
Keamanan Informasi Week 6 – DNS Server.
Domain Name System (DNS)
DNS (Domain Name System )
BAB I                       Mata Kuliah  Sistem Terdistribusi _______________________ File & Name Service Oleh : Laseri, S.Kom.
Sistem Penamaan Domain (DNS)
Jaringan Komputer : DNS
Client-Server Computing
How Can I Be A Driver of The Month as I Am Working for Uber?
Sistem Operasi Jaringan KD 12 Domain Name System 1 Wahyudi Wijayanto,ST.
Keamanan Informasi Week 6 – DNS Server.
THE INFORMATION ABOUT HEALTH INSURANCE IN AUSTRALIA.
HughesNet was founded in 1971 and it is headquartered in Germantown, Maryland. It is a provider of satellite-based communications services. Hughesnet.
Kasus DDNS Dynamic Domain Name Server
Transcript presentasi:

1 Pertemuan 7 Name and Address Conversion Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menghasilkan program dgn menggunakan fungsi : "Name and Address Conversions "

3 Outline Materi Domain Name System Gethostbyname function Gethostbyaddr function Uname function Gethostname function Getservbyname function

4 ELEMENTARY NAME AND ADDRESS CONVERSION Domain name system (DNS) tujuannya untuk memetakkan antara hostname dan IP address. Nama host lebih mudah diingat dibandingkan alamat (dalam numerik). Nama host bisa simple name contoh: solaris atau dalam Fully qualified domain name (FQDN) contoh: solaris.kohala.com Domain name berbentuk hirarki sehingga nama menjadi unik, namun mudah untuk diingat.

5 ELEMENTARY NAME AND ADDRESS CONVERSION

6 Host Name Structure Setiap nama host terdiri dari urutan label- label yang dipisahkan oleh titik. –Setiap label bisa sampai 63 characters –Total name bisa sampai 255 characters. Contoh: –whitehouse.gov –barney.the.purple.dinosaur.com –monica.cs.rpi.edu

7 Domain Name Nama domain suatu host adalah urutan label-label yang dimulai dari leaf (daun) dari suatu naming tree sampai ke top (root). Sebuah domain adalah sebuah sub-tree dari naming tree. Contoh top level domain : edu, gov, com, id, net, org, dll

8 DNS Organization The organization that owns a domain name is responsible for running a DNS server that can provide the mapping between hostnames within the domain to IP addresses.

9 DNS Distributed Database There is one primary server for a domain, and typically a number of secondary servers containing replicated databases

10 DNS Clients A DNS client is called a resolver A call to gethostbyname()is handled by a resolver (typically part of the client). Most Unix workstations have the file /etc/resolv.conf that contains the local domain and the addresses of DNS servers for that domain. Contoh isi dari /etc/resolv.conf –domain rpi.edu – –

11 DNS Server Servers handle requests for their domain directly. Servers handle requests for other domains by contacting remote DNS server(s). Servers cache external mappings

12 Server - Server Communication if a server is asked to provide the mapping for a host outside it’s domain (and the mapping is not in the server cache): –The server finds a nameserver for the target domain. –The server asks the nameserver to provide the host name to IP translation. To find the right nameserver, use DNS!

13 DNS DataBase DNS databases contain more than just hostname-to-address records: –Name server recordsNS –Hostname aliases CNAME –Mail ExchangersMX –Host InformationHINFO

14 The Root DNS Server The root server needs to know the address of 1st (and many 2nd) level domain nameservers

15 DNS Library Function gethostbyname gethostbyaddr gethostbyname2

16 gethostbyname struct hostent *gethostbyname( const char *hostname); struct hostent is defined in netdb.h: #include

17 struct hostent struct hostent { char *h_name; char **h_aliases; int h_addrtype; int h_length; char **h_addr_list; };

18 Which Address ? On success, gethostbyname returns the address of a hostent that has been created. –– has an array of ptrs to IP addresses –– Usually use the first one: #define h_addr h_addr_list[0]

19 gethostbyname and errors On error gethostbyname return null. Gethostbyname sets the global variable h_errno to indicate the exact error: ––HOST_NOT_FOUND ––TRY_AGAIN ––NO_RECOVERY ––NO_DATA ––NO_ADDRESS

20 Getting at the address char **h_addr_list; h = gethostbyname("joe.com"); memcpy(&sockaddr.sin_addr, h->h_addr_list[0], sizeof(struct in_addr)); All the IP addresses returned via the hostent are in network byte order

21 gethostbyaddr struct hostent *gethostbyaddr( const char *addr size_t len, int family);

22 Fungsi-fungsi lain uname : get hostname of local host getservbyname : get port number for a named service getservbyaddr : get name for service associated with a port number