chaosblade icon indicating copy to clipboard operation
chaosblade copied to clipboard

Network fault such as delay and packet loss support domain name input

Open binbin0325 opened this issue 2 years ago • 1 comments

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?

binbin0325 avatar May 11 '22 11:05 binbin0325

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.

xcaspar avatar May 13 '22 01:05 xcaspar