Skip to content

Commit

Permalink
Fixed Dns class
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobMisirian committed Sep 24, 2015
1 parent a71fa9f commit 5cab346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hassium/HassiumObjects/Networking/HassiumDns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private HassiumObject getHostAddresses(HassiumObject[] args)

private HassiumObject getHostEntry(HassiumObject[] args)
{
return new HassiumString(Dns.GetHostEntry(IPAddress.Parse(args[0].ToString())).ToString());
return new HassiumString(Dns.GetHostEntry(IPAddress.Parse(args[0].ToString())).HostName);
}

private HassiumObject getHostName(HassiumObject[] args)
Expand All @@ -38,7 +38,7 @@ private HassiumObject getHostName(HassiumObject[] args)

private HassiumObject resolve(HassiumObject[] args)
{
return new HassiumString(Dns.Resolve(args[0].ToString()).ToString());
return new HassiumString(Dns.Resolve(args[0].ToString()).HostName);
}
}
}

0 comments on commit 5cab346

Please sign in to comment.