Class SpoofDnsAction
Fix statically the remote ip, remote port used for the targeted exchange.
[ActionMetadata("Fix statically the remote ip or port disregards to the dns or host resolution of the current running system. Use this action to force the resolution of a hostname to a fixed IP address. ")]
public class SpoofDnsAction : Action
- Inheritance
-
SpoofDnsAction
- Inherited Members
Constructors
SpoofDnsAction()
[JsonConstructor]
public SpoofDnsAction()
SpoofDnsAction(string, int)
public SpoofDnsAction(string remoteHostIp, int remoteHostPort)
Parameters
Properties
ActionScope
public override FilterScope ActionScope { get; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
RemoteHostIp
The IP address, leave blank to reuse the DNS solved IP
public string? RemoteHostIp { get; set; }
Property Value
RemoteHostPort
Leave blank to use the same port as specified originally by downstream
public int? RemoteHostPort { get; set; }
Property Value
- int?
Methods
GetExamples()
public override IEnumerable<ActionExample> GetExamples()
Returns
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
context
ExchangeContextexchange
Exchangeconnection
Connectionscope
FilterScopebreakPointManager
BreakPointManager