chaosblade
chaosblade copied to clipboard
Network fault such as delay and packet loss support domain name input
Issue Description
feature request Type: bug report , feature request or question
Describe what happened (or what feature you want)
To perform network fault injection for a domain name, resolve the IP address of the domain name before running the chaosblade create network command. However, the IP address of the domain name may change
network faults such as delay and packet loss support domain name input
如果需要对域名进行网络故障注入,需要先手动解析出域名的IP地址,再执行chaosblade create network命令。但域名的IP地址可能会发生变化。
Describe what you expected to happen
希望chaosblade在执行网络故障时可以支持输入域名,然后自动解析出ip 例如:blade create network delay --time 3000 --interface eth0 --destination-domain www.baidu.com 实际转换成 blade create network delay --time 3000 --interface eth0 --destination-ip 1.1.1.1
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?
Parsing dns is difficult to implement because you cannot determine the peer IP used by other sockets. You can solve the problem by combining experiments. Inject dns tampering first, then network faults.