Resolve CNAME in Python ZkTopoServer to match Go's net.LookupCNAME().
Resolve CNAME in Python ZkTopoServer to match Go's net.LookupCNAME().

If your /etc/hosts file contains something like this:

127.0.0.1 localhost localhost.localdomain.

Then both Python and Go will resolve the FQDN as localhost.localdomain.
However, in Go we additionally call net.LookupCNAME(), which converts
localhost.localdomain back to just localhost, since it comes first in
the /etc/hosts line. In Python, we need to also do the equivalent CNAME
lookup, or else we won't match the hostname that Vitess sees.

fengshao0907/vitess,yangzhongj/vitess,pivanof/vitess,mattharden/vitess,AndyDiamondstein/vitess,tinyspeck/vitess,rnavarro/vitess,tjyang/vitess,rnavarro/vitess,dumbunny/vitess,AndyDiamondstein/vitess,mlc0202/vitess,tinyspeck/vitess,aaijazi/vitess,yaoshengzhe/vitess,netroby/vitess,applift/vitess,anusornc/vitess,alainjobart/vitess,rnavarro/vitess,sougou/vitess,mahak/vitess,yangzhongj/vitess,AndyDiamondstein/vitess,mattharden/vitess,michael-berlin/vitess,guokeno0/vitess,erzel/vitess,tinyspeck/vitess,xgwubin/vitess,michael-berlin/vitess,mahak/vitess,cgvarela/vitess,nurblieh/vitess,michael-berlin/vitess,xgwubin/vitess,erzel/vitess,skyportsystems/vitess,cloudbearings/vitess,tirsen/vitess,yaoshengzhe/vitess,nurblieh/vitess,tjyang/vitess,kuipertan/vitess,michael-berlin/vitess,guokeno0/vitess,mlc0202/vitess,cloudbearings/vitess,mattharden/vitess,xgwubin/vitess,mlc0202/vitess,nurblieh/vitess,yangzhongj/vitess,davygeek/vitess,kmiku7/vitess-annotated,sougou/vitess,anusornc/vitess,guokeno0/vitess,dcadevil/vitess,mahak/vitess,AndyDiamondstein/vitess,aaijazi/vitess,dumbunny/vitess,erzel/vitess,HubSpot/vitess,applift/vitess,guokeno0/vitess,atyenoria/vitess,pivanof/vitess,sougou/vitess,alainjobart/vitess,ptomasroos/vitess,kuipertan/vitess,netroby/vitess,tirsen/vitess,kmiku7/vitess-annotated,AndyDiamondstein/vitess,michael-berlin/vitess,pivanof/vitess,kmiku7/vitess-annotated,erzel/vitess,HubSpot/vitess,rnavarro/vitess,netroby/vitess,mlc0202/vitess,tjyang/vitess,michael-berlin/vitess,mlc0202/vitess,dcadevil/vitess,pivanof/vitess,tirsen/vitess,dcadevil/vitess,cloudbearings/vitess,tjyang/vitess,aaijazi/vitess,rnavarro/vitess,HubSpot/vitess,guokeno0/vitess,tirsen/vitess,yaoshengzhe/vitess,fengshao0907/vitess,guokeno0/vitess,HubSpot/vitess,michael-berlin/vitess,ptomasroos/vitess,netroby/vitess,rnavarro/vitess,fengshao0907/vitess,mapbased/vitess,ptomasroos/vitess,SDHM/vitess,AndyDiamondstein/vitess,kuipertan/vitess,enisoc/vitess,dumbunny/vitess,aaijazi/vitess,applift/vitess,skyportsystems/vitess,mapbased/vitess,yaoshengzhe/vitess,cloudbearings/vitess,vitessio/vitess,nurblieh/vitess,SDHM/vitess,atyenoria/vitess,erzel/vitess,applift/vitess,pivanof/vitess,pivanof/vitess,tjyang/vitess,erzel/vitess,fengshao0907/vitess,anusornc/vitess,kmiku7/vitess-annotated,cloudbearings/vitess,dumbunny/vitess,dumbunny/vitess,mattharden/vitess,yaoshengzhe/vitess,yaoshengzhe/vitess,davygeek/vitess,applift/vitess,netroby/vitess,yangzhongj/vitess,nurblieh/vitess,yaoshengzhe/vitess,kmiku7/vitess-annotated,aaijazi/vitess,cgvarela/vitess,vitessio/vitess,dcadevil/vitess,nurblieh/vitess,pivanof/vitess,enisoc/vitess,atyenoria/vitess,SDHM/vitess,ptomasroos/vitess,xgwubin/vitess,skyportsystems/vitess,mattharden/vitess,tirsen/vitess,dcadevil/vitess,applift/vitess,kmiku7/vitess-annotated,cloudbearings/vitess,michael-berlin/vitess,skyportsystems/vitess,anusornc/vitess,netroby/vitess,rnavarro/vitess,xgwubin/vitess,yangzhongj/vitess,fengshao0907/vitess,mahak/vitess,nurblieh/vitess,cgvarela/vitess,yangzhongj/vitess,skyportsystems/vitess,erzel/vitess,applift/vitess,mapbased/vitess,yangzhongj/vitess,dcadevil/vitess,atyenoria/vitess,anusornc/vitess,atyenoria/vitess,sougou/vitess,kuipertan/vitess,skyportsystems/vitess,pivanof/vitess,mapbased/vitess,fengshao0907/vitess,dumbunny/vitess,yaoshengzhe/vitess,fengshao0907/vitess,mattharden/vitess,cloudbearings/vitess,SDHM/vitess,erzel/vitess,mapbased/vitess,mapbased/vitess,kmiku7/vitess-annotated,atyenoria/vitess,xgwubin/vitess,atyenoria/vitess,mapbased/vitess,skyportsystems/vitess,xgwubin/vitess,sougou/vitess,tirsen/vitess,alainjobart/vitess,atyenoria/vitess,pivanof/vitess,ptomasroos/vitess,rnavarro/vitess,mapbased/vitess,HubSpot/vitess,mahak/vitess,guokeno0/vitess,mahak/vitess,mlc0202/vitess,enisoc/vitess,davygeek/vitess,mahak/vitess,mahak/vitess,enisoc/vitess,netroby/vitess,cgvarela/vitess,kmiku7/vitess-annotated,nurblieh/vitess,davygeek/vitess,mattharden/vitess,michael-berlin/vitess,cgvarela/vitess,HubSpot/vitess,dumbunny/vitess,mattharden/vitess,netroby/vitess,kuipertan/vitess,AndyDiamondstein/vitess,dumbunny/vitess,fengshao0907/vitess,xgwubin/vitess,aaijazi/vitess,cgvarela/vitess,mapbased/vitess,anusornc/vitess,erzel/vitess,ptomasroos/vitess,HubSpot/vitess,tinyspeck/vitess,mlc0202/vitess,vitessio/vitess,anusornc/vitess,kuipertan/vitess,kuipertan/vitess,nurblieh/vitess,cgvarela/vitess,guokeno0/vitess,tjyang/vitess,mattharden/vitess,vitessio/vitess,mapbased/vitess,cgvarela/vitess,tinyspeck/vitess,HubSpot/vitess,applift/vitess,tirsen/vitess,tjyang/vitess,vitessio/vitess,guokeno0/vitess,vitessio/vitess,kuipertan/vitess,SDHM/vitess,tirsen/vitess,sougou/vitess,vitessio/vitess,SDHM/vitess,cloudbearings/vitess,tjyang/vitess,SDHM/vitess,enisoc/vitess,alainjobart/vitess,ptomasroos/vitess,enisoc/vitess,alainjobart/vitess,tinyspeck/vitess,alainjobart/vitess,dumbunny/vitess,enisoc/vitess,applift/vitess,aaijazi/vitess,yangzhongj/vitess,aaijazi/vitess,xgwubin/vitess,erzel/vitess,atyenoria/vitess,sougou/vitess,SDHM/vitess,AndyDiamondstein/vitess,kmiku7/vitess-annotated,davygeek/vitess,tjyang/vitess,tirsen/vitess,mlc0202/vitess,tinyspeck/vitess,vitessio/vitess,skyportsystems/vitess,dcadevil/vitess,SDHM/vitess,kuipertan/vitess,applift/vitess,anusornc/vitess,yangzhongj/vitess,cgvarela/vitess,AndyDiamondstein/vitess,aaijazi/vitess,mattharden/vitess,ptomasroos/vitess,skyportsystems/vitess,netroby/vitess,anusornc/vitess,mlc0202/vitess,alainjobart/vitess,ptomasroos/vitess,dumbunny/vitess,davygeek/vitess,yaoshengzhe/vitess,alainjobart/vitess,cloudbearings/vitess,sougou/vitess,rnavarro/vitess,davygeek/vitess,fengshao0907/vitess