1 / 7

CIDR 環境での DNS 逆引き

CIDR 環境での DNS 逆引き. Nissho Techno System Corporation 徳植 寛 toku@nissho-ele.co.jp. .(root). jp. com. sun. co. nissho-ele. www. mail. www. mail. 正引きの構造. in-addr.arpa. 210. 202. 214. 251. 91. 79. 0. 255. 0. 255. 逆引きの構造. 様々な逆引き.

Download Presentation

CIDR 環境での DNS 逆引き

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CIDR環境でのDNS逆引き Nissho Techno System Corporation 徳植 寛 toku@nissho-ele.co.jp

  2. .(root) jp com sun co nissho-ele www mail www mail 正引きの構造

  3. in-addr.arpa. 210 202 214 251 91 79 0 255 0 255 逆引きの構造

  4. 様々な逆引き C:\>nslookupDefault Server: nelco.nissho-ele.co.jpAddress: 202.214.78.151> set q=ptr> 39.79.214.202.in-addr.arpa.Server: nelco.nissho-ele.co.jpAddress: 202.214.78.15139.79.214.202.in-addr.arpa name = megaris.nissho-ele.co.jp79.214.202.in-addr.arpa nameserver = ns01.nissho-ele.co.jp79.214.202.in-addr.arpa nameserver = ns02.nissho-ele.co.jp79.214.202.in-addr.arpa nameserver = ns1.iij.ad.jpns01.nissho-ele.co.jp internet address = 202.214.78.151ns02.nissho-ele.co.jp internet address = 202.214.78.152ns1.iij.ad.jp internet address = 202.232.2.35> C:\>nslookupDefault Server: nelco.nissho-ele.co.jpAddress: 202.214.78.151> 202.214.79.39Server: nelco.nissho-ele.co.jpAddress: 202.214.78.151Name: megaris.nissho-ele.co.jpAddress: 202.214.79.39> #!/usr/bin/perl$ip = ‘202.214.79.39’@name = gethostbyaddr(pack(‘C4’, split(/\./, $ip)), 2);print $name[0], “\n”; #include <stdio.h>#include <netdb.h>int main(){ struct in_addr *iaddr; struct hostent *hptr; char *str = “202.214.79.39”; inet_aton(str, iaddr); hptr = gethostbyaddr(iaddr, sizeof(struct in_addr), AF_INET); printf(“%s\n”, hptr->h_name);}

  5. in-addr.arpa.? 210 210 251 251 91 92 91 foo社 bar社 0-255 0-255 foo社 bar社 0-127 128-255 CIDR技術の登場

  6. 210 251 91 foo bar foo社 bar社 0-127 128-255 CIDR分割された逆引きの構造 in-addr.arpa. 210 251 91 91 foo社 bar社 0-127 128-255 Π

  7. 34 = 34.foo.91.251.210.in-addr.arpa. 200 = 200.bar.91.251.210.in-addr.arpa. CIDR分割された逆引きの構造 251.210.in-addr.arpa. 91 foo bar 34 200

More Related