How to get the latest hostname's dynamic ip address with python?

前端 未结 0 372
一个人的身影
一个人的身影 2021-01-20 16:03

A hostname is bound with a dynamic ip. I have checked the hostname with dig,everytime to dig the hostname can get the latest ip address ,

dig +short $hostname         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题