[英]Why google dns cloud is showing different results for gcloud dns records list and list from api?
我決定將我的域切換到Google DNS雲。 我以為將所有記錄轉移到google並僅更改我的域的名稱服務器以指向google會很容易。 但是我花了一天的時間才能完成。 無論如何,我現在正面臨這個問題:
當我這樣做時: gcloud dns records --zone="zone" list
我可以看到域記錄。 但是當我嘗試通過python做到這一點時:
response = service.managedZones().list(project="stable-plasma-833").execute()
我打開域時得到的只是一些默認記錄。
當我執行gcloud dns changes --zone="zone" get 1
我可以看到所有記錄的狀態均為“完成”。
我是否必須將名稱服務器指向google,然后python才會顯示正確的結果?
我剛剛發現,用於獲取記錄的方法從:
response = service.managedZones().list(project="stable-plasma-833").execute()
對此:
response = service.changes().list(project="stable-plasma-833",managedZone='myzone').execute()
謝謝Google( http://goo.rs/g4gwb )。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.