Table of Contents

Class SpoofDnsAction

Namespace
Fluxzy.Rules.Actions
Assembly
Fluxzy.Core.dll

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

remoteHostIp string
remoteHostPort int

Properties

ActionScope

public override FilterScope ActionScope { get; }

Property Value

FilterScope

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

RemoteHostIp

The IP address, leave blank to reuse the DNS solved IP

public string? RemoteHostIp { get; set; }

Property Value

string

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

IEnumerable<ActionExample>

InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)

public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)

Parameters

context ExchangeContext
exchange Exchange
connection Connection
scope FilterScope
breakPointManager BreakPointManager

Returns

ValueTask