변군이글루

[네임서버] DNS round-robin 분산시스템 본문

임___네임서버

[네임서버] DNS round-robin 분산시스템

변군 변군이글루 2013.07.22 23:37

dns를 이용하여 round robin 방식으로 로드발런싱

 

<dns server>

 

zone 파일 설정

$TTL 60

@ IN SOA scbyun.com. root.scbyun.com. (

                                   2010020501 ; Serial

                                   28800 ; Refresh

                                  14400 ; Retry

                                  3600000 ; Expire

                                  86400 ) ; Minimum

 

                IN NS ns.scbyun.com.

ns            IN A 10.0.10.124

 

www        IN A 10.0.10.124

                IN A 10.0.10.125

                IN A 10.0.10.126

 

 

<Round-ROBIN 테스트 분산시스템>

 

# ping www.scbyun.com

PING www.scbyun.com (10.0.10.126) 56(84) bytes of data.

 

--- www.scbyun.com ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 1000ms

 

# ping www.scbyun.com

PING www.scbyun.com (10.0.10.125) 56(84) bytes of data.

 

--- www.scbyun.com ping statistics ---

1 packets transmitted, 0 received, 100% packet loss, time 0ms

 

# ping www.scbyun.com

PING www.scbyun.com (10.0.10.124) 56(84) bytes of data.

64 bytes from 10.0.10.124: icmp_seq=1 ttl=64 time=0.040 ms

 

--- www.scbyun.com ping statistics ---

1 packets transmitted, 1 received, 0% packet loss, time 0ms

 

 

 

 

0 Comments
댓글쓰기 폼