SmtpClient.DnsServerIP Property


Gets or sets the log file name for smtp transaction.

[VisualĀ Basic]
Public Property DnsServerIP As String
[C#]
public string DnsServerIP {get; set;}
[C++]
public: __property String* get_DnsServerIP();
public: __property void set_DnsServerIP(String*);
[JScript]
public function get DnsServerIP() : String;
public function set DnsServerIP(String);

Property Value

A valid IPv4 address of dns server.

Remarks

By default, SmtpClient uses the default dns server of current machine. The dns server is used to query the MX records of recipient. To learn more detail, please refer to: Send E-mail Directly (Simulating SMTP server).