DNS & Load balancing(dior8wsh)

Antonis Kanavouras ankan at med.auth.gr
Wed Sep 20 17:34:30 EEST 2000


Giorgos Keramidas wrote:

> err, den nomizo to ping na kanei ksana lookup gia *kathe* paketo pou
> thelei na steilei. mallon kanei tin proth fora, pairnei to prwto address
> tou apotelesmatos (to opoio to exei hdh kanei round robin o DNS server),
> kai stelnei panta ekei ta icmp packets tou.

Sthn prokeimenh periptwsh fysika kai kanei lookup ka8e fora afou to
kaloume,pethainei kai to xanakaloume dinontas:
ping -c1 klp klp 

============================================================================================
Yannis A. Mandravellos wrote:

>1on) Oi dyo IP poy dilothikan einai oi 192.168.0.1 kai 192.168.1.1. An
>ypothesoyme oti h dokimh ginetai apo to idio mhxanhma, to netmask tha prepei
>na einai 255.255.0.0 gia na mporei na exei epikoinonia kai me tis dyo
>dieythynseis.
 
Den vlepw to logo.

frummel~# route -n
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0:0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2
lo

Mia xara den einai?

frummel:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.2 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.1 ms
-----stop-------

frummel:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.2 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.1 ms
------- stop kai pali--

>Thn epomenh fora
>poy tha kanoyme ping - vlepe "sleep 1" sto script toy filoy - o DNS tha
>epistrepsei thn *cached* plhroforia (dhladh thn idia IP). Ki an akoma exoyn
>perasei meres kai den yparxei sthn cache, tha epistrepsei pali mia IP (isos
>thn allh, 192.168.1.1). To ping, omos, tha kanei ping se mia dieyhynsh (thn
>192.168.1.1), oxi mia sthn mia kai mia sthn allh.

Ayto ontws akougetai logiko. Parola ayta otan anava8misa se bind 8.2.2
kai me ta idia expiration times (bl arxh tou thread) to idio scriptaki
ekane ping pote sto ena kai pote sto allo IP. Oxi me thn aysthrothta tou
"mia to ena kai mia to allo" alla me mia fuzzy akolou8ia (dyo sto prwto
-mia sto deytero, mia sto prwto - treis sto deytero, mia kai mia, kok)

Opote mallon 8a prepei na exetasoume thn apopsh Ricudi:

>Kai o DNS server epistrefei KAI TIS DYO. 


Antonis

-- 
Comtuters are useless. They can only give answers...

	Pablo Picasso

--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list